tFF.msk.ru :: Sharing tFFed mind

Технологично => xNIX => Тема начата: tFF от Ноябрь 01, 2009, 17:38:57



Название: ASUS PC EEE - UNR
Отправлено: tFF от Ноябрь 01, 2009, 17:38:57
Задача: Активировать кнопку Home на клавиатуре линуксового ASUS PC EEE под Ubuntu
Для чего: Чтобы при нажатии кнопки Home отображать десктоп.
Что делать:
1. Создаем в пользовательской папке файл .Xmodmap
Код:
$ cd ~
$ nano .Xmodmap
2. В файле прописываем
Код:
remove mod4 = Super_L
3. Перезапускаем X-сервер
4. Соглашаемся на загрузку .Xmodmap
5. Открываем Keyboard Shortcuts, в разделе Window Management для Hide all normal windows and set focus to the desktop устанавливаем шорткат нажатием теперь нормально работающей кнопки Home.

По мотивам:
Цитировать
Enabling the Home key to activate the popup Applications menu

By default the Home key (the one between the Fn and Alt keys) is set as a 'modifier key' by X, (e.g. like control or alt). To remove this create/edit .Xmodmap in your home directory.

Код:
$ cd ~
$ nano .Xmodmap
and add the line:

Код:
remove mod4 = Super_L

Save the file and restart Xfce, ctrl+alt+backspace. When you've logged back in, go to Settings > Settings Manager, and click on Keyboard. Now click on the Shortcuts tab. At the end of the Themes column, click add. Call your new theme a name, clicking OK will select your new theme and the Shortcuts will now be selectable. click Add in the Shortcuts section, type your command xfce4-popup-menu Click OK, it will ask you to press a key. Press the Home button. The shortcut xfce4-popup-menu Super+Super_L should now of appeared on the list.



Отображение состояния CapsLock, NumLock, ScrollLock
Код:
apt-get install lock-keys-applet



Заставляем работать Scroll Lock
Источник: Getting Scroll Lock to Work in Ubuntu (http://linuxtechie.wordpress.com/2008/04/07/getting-scroll-lock-to-work-in-ubuntu/)

Цитировать
For some odd reason the Scroll Lock button doesn’t work in an Xsession in Ubuntu. There’s an old bug report here. However it works as it should in a virtual terminal.  The interesting thing though is that Xev will detect the key press. So how do you get the Scroll Lock functioning again? Well first let’s run this command

xmodmap -pm

You should get an output like this

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0×32),  Shift_R (0×3e)
lock        Caps_Lock (0×42)
control     Control_L (0×25),  Control_R (0×6d)
mod1        Alt_L (0×40),  Alt_L (0×7d),  Meta_L (0×9c)
mod2        Num_Lock (0×4d)
mod3
mod4        Super_L (0×7f),  Hyper_L (0×80)
mod5        Mode_switch (0×5d),  ISO_Level3_Shift (0×7c)

Notice mod3 has nothing listed.  This will be what we will use to assign Scroll Lock.  It may be a different mod for some people.  Either way use the one that has nothing listed.

Before we do anything else let’s test this to make sure it works.  We’re going to run this command

xmodmap -e ‘add mod3 = Scroll_Lock’

Replace mod3 with whatever the blank mod listing was.  Your Scroll Lock should work now.

I hate making changes like this locally to only my user, so I’m going to do this globally.

Now we need to create a file in /etc/X11 called Xmodmap.  So start up Gedit or your favorite text editor

gksudo gedit /etc/X11/Xmodmap

Now add this to the file

add mod3 = Scroll_Lock

again, change mod3 to the one that was empty from the first command.  Now the Scroll Lock key should get set when X starts now.


Название: Mouse buttons do not work as Back and Forward
Отправлено: tFF от Ноябрь 02, 2009, 00:10:30
This might help if your mouse "back" and "forward" buttons don't work as they should in Firefox:
Mouse buttons do not work as Back and Forward  (http://support.mozilla.com/en-US/kb/Mouse+buttons+do+not+work+as+Back+and+Forward)


Название: Wi-fi truning off with Fn-F2 leads to kernel panic
Отправлено: tFF от Ноябрь 12, 2009, 16:16:06
Wi-fi truning off with Fn-F2 leads to kernel panic

Bug report comment (https://bugs.launchpad.net/ubuntu-release-notes/+bug/404626/comments/61)
Цитировать

I have a EeePC 1000H and I have installed Karmic UNR
I have also installed the excellent eeepc-utilities by Andrew Fewt

 http://www.statux.org/content?page=repo for repo and instuctions

This is an excellent solution for EeePC ACPI management.

RESULT wifi toggle now works completely, connection the whole business.
I know it might not be within the spirit of "bug fixing", but with the eeepc-utilities installed I have an EeePC with FULL functionaity.

Thanks very much to Andrew for his now discontinued work on these scripts for Ubuntu.
A big thank you also to the Ubuntu Karmic developers I have had Hardy, Intrepid, and Jaunty installed previously, but Karmic install and functionality is the best by a mile.

As a reply (https://bugs.launchpad.net/ubuntu-release-notes/+bug/404626/comments/62):
Цитировать
The EEEPC ACPI scripts don't help the problem with my 901. I still get a black screen when I toggle WIFI off.


Название: Ubuntu UNE - Некоторые пункты меню панели неактивны
Отправлено: tFF от Май 15, 2010, 15:15:34
Почему-то в UNE (начиная с 10.04) запретили изменять содержимое панели и добавлять Panel Apps, в связи с чем некоторые пункты меню недоступны.
Есть косячное решение, которое подменяет один из способов входа в систему (GNOME логин) наподобие интерфейса UNE, но с открытыми пунктами меню. Косяк в том, что пропадает GNOME логин в чистом виде (так как его подменяют), а остаются только вариации на тему Netbook.
https://help.ubuntu.com/community/UbuntuNetbookEdition/ConvertGnomeSession

PS
Баг-тикет на эту тему https://bugs.launchpad.net/window-picker-applet/+bug/248324


Название: Skype menu unreadable
Отправлено: tFF от Май 22, 2010, 18:31:38
В дефолтной теме оформления Skype пункты меню нечитабельны и неразличимы.
Как это исправить?

http://playbreakfix.blogspot.com/2010/04/getting-skype-menus-to-work-nicely-with.html
Заходим в меню Options и
Цитировать
Under the general tab change the style from 'Clearlooks' to 'Desktop Settings'


Название: Optimize Lucid for netbook
Отправлено: tFF от Май 30, 2010, 20:51:59
Оригинал на фрацузском (http://mini9.canalblog.com/)
Перевод с французкого на английский (http://translate.google.com/translate?js=y&prev=_t&hl=en&ie=UTF-8&layout=1&eotf=1&u=http%3A%2F%2Fmini9.canalblog.com%2F&sl=auto&tl=en)
Не истина, но любопытно

RamLog - умный скрипт для помещения лог-файлов в RAM (http://www.tremende.com/ramlog/)
Geek Sheet: A Tweaker’s Guide to Solid State Drives (SSDs) and Linux (http://www.zdnet.com/blog/perlow/geek-sheet-a-tweakers-guide-to-solid-state-drives-ssds-and-linux/9190)

проверить используемый elevator для конкретного диска:
Код:
cat /sys/block/sdX/queue/scheduler


Название: Touchpad: 2-finger tap = middle click, 3-finger tap = right click
Отправлено: tFF от Июнь 12, 2010, 10:07:49
Read
http://ubuntuforums.org/showpost.php?p=8622287&postcount=11
http://ubuntuforums.org/showpost.php?p=8721580&postcount=14
http://ubuntuforums.org/showthread.php?t=1147196

HINT 1 (works fine)
Код:
synclient TapButton2=2
synclient TapButton3=3
so you might want to add it to /etc/rc.local to run it on start up.


HINT 2
You can enable it from your HAL configuration file.

to find the file:
sudo find / -name 11-x11-synaptics.fdi

then edit it with gedit or kate or another text editor and make sure to include the lines:
<merge key="input.x11_options.SHMConfig" type="string">true</merge>
<merge key="input.x11_options.TapButton2" type="string">2</merge>
<merge key="input.x11_options.TapButton3" type="string">3</merge>


Название: Re: ASUS PC EEE - UNR
Отправлено: tFF от Сентябрь 16, 2010, 11:02:40
Различные баги Lucid Lynx и их фиксы:

http://ubuntuforums.org/showthread.php?t=1469475

Например, моя проблема, решение для которой работает, но асболютно не нужно на нетбуке. Проблема в том, что при загрузке ОС моргает курсор и нет анимации, анимация появляется на секунду перед загрузкой иксов:

Other graphics card users including nVidia may get a black screen with flashing cursor and then a very short duration plymouth.
One fix for this is to create this file:
Код:
gksu gedit /etc/initramfs-tools/conf.d/splash
and add this option FRAMEBUFFER=y, save the file.
Then
Код:
sudo update-initramfs -u


Название: Re: ASUS PC EEE - UNR
Отправлено: tFF от Апрель 05, 2011, 21:39:20
О том, как я заставлял Ubuntu работать 10 часов от батареи (http://habrahabr.ru/blogs/linux/115451/)