среда, 18 июля 2012 г.

Disable AutoSlow Keys in gdm

Now it's Linux Mint Maya (-> Ubuntu -> Debian)

Sometimes during work slow key are suddenly on. That means, that to print a symbol you must hold on a keyboard button for a few seconds, it's a bit annoying. For the first few times it's not even annoying - it looks like keyboard is down.

So, the source of troubles is accessibility possibilities of Gnome Desktop Manager or, shortly, gdm. It wait while you hold shift button for more than 10 seconds and then enables slow keys. You can revert this process by holding shift button for more than 10 seconds again, but it's not as much interesting.

To disable accesibilities you can try:

1. GNOME: Press Alt+F2, enter gconf-editor. Navigate to /desktop/gnome/accessibility/keyboard, uncheck “enable” to disable all accessibility options.
it cames from here: http://dimedroll.com/linux/ubuntu-linux/disable-slow-keysasdf

2. gconftool-2 -s -t bool /apps/gdm/simple-greeter/settings-manager-plugins/a11y-keyboard/active true
it cames from here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657969



Both methods didn't help in my situation. So, I installed lightdm (sudo apt-get install lightdm) and made it default DM. Then reboot (not a best way, but fastest) and problem is gone.

понедельник, 16 июля 2012 г.

Making Huawei e171 to work

Now it's OpenSuSE 12.1 and usb 3g modem from greatly loved Huawei of E171 model.

1. This stick recognized as sd storage at first. To make it work we need usb_modeswitch (I see no other way). It can be taken here:
http://www.draisberghof.de/usb_modeswitch/

Usual makeinstalling and usb is recognized as modem! (Even without replugging). I got 4 /dev/ttyUSB*, where * in (0,1,2,3).

2. Now, we want to make it work without usb_modeswitch in order to take this USB to any beer-drinking-linux-friend without usb_modeswitch installed.

we need minicom program installed.

type "minicom -s" in terminal, com-terminal is up, enter port settings, press "A" (to enter device) and enter /dev/ttyUSB0 here. Save settings as dfl end exit, modem then should be initialized. It may even report "ERROR', this was not much problem for me.

Press "Ctrl-A-Z" and enable local echo.

Input "ati0", if reported - then connection is ok. If not - try /dev/ttyUSB1 (2,3), it may help.

By the way, you may try to unlock your modem (in fact, if it's not e171), but you should google for it.


 AT^CARDLOCK?

Will tell you if your modem locked or not:

^CARDLOCK: 2,10,0

"2" on first place means "unlocked"
"10" means - 10 tries to unlock.



So, back to work - our aim is to disable cdrom mode at all. This is done by:
AT^U2DIAG=0
or by 
at+zcdrun=8
or by 
AT+ZCDRUN=E


But, in fact, nothing of this works for E171.


Not a happy end, huh? I'm working to find out solution.


Upd.


Here we have another usefull info: http://forum.ubuntu.ru/index.php?topic=185146.0 , this gives us next commands:

AT^SETPORT?
- Shows current configuration

AT^GETPORTMODE
- Shows settings codes

AT^SETPORT="A1,A2;1,2,3,7,A1,A2"
- Sets default configuration. Use it on your own risk, better to substitute parameters for this command with output from 
AT^SETPORT? 

AT^SETPORT="A1,A2;1,2,3,7"
- Disables CD + SD

AT^SETPORT="A1,A2;1,2,3,A2"
- Disables NDIS and CDROM - only modem and SD are left

AT^SETPORT="A1,A2;1,2,3"
- Modem only

AT^SETPORT="A1,A2;2,7"
- Disable CD + SD + modem  in Win7, NDIS mode only left

AT^SETPORT="A1;2,7"
- CD + NDIS
It's sad, but this doesn't help too =). Working futher.

воскресенье, 15 июля 2012 г.

LaTeX Super Short manual

This is about how to start using LaTeX ASAP. I'm using Mint Linux (which is Ubuntu, which is Debian).

First, install. I will install TeXMaker editor to shorten WYSIWYG and it will install LaTeX from dependancies. So you got it, I think.
sudo apt-get install texmaker
Then, some packages for russian language:
sudo apt-get install texlive-lang-cyrillic
Then, it possibly will need to update language.dat file:
sudo update-language
 Ок, now. You may run texmaker. It's user friendly =).
The very simple TeX source is:

\documentclass{book}
\begin{document}
This is Russia!!!
\end{document}
In TeXMaker press F1 to see pdf-ed document from this source.

 To enable russian language (we installed lang-packages earlier):

\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\begin{document}
Это Россия!!!
\end{document}


That is all for the now. It's not a tutorial.