maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Troubleshooting (https://talk.maemo.org/forumdisplay.php?f=6)
-   -   xmodmap and bluetooth keyboard (https://talk.maemo.org/showthread.php?t=20829)

Rider 2008-06-09 15:04

xmodmap and bluetooth keyboard
 
I hacked a nice xmodmaprc for my new Stowaway BT keyboard. So far, everthing works well.

But whenever the keyboard disconnects, either by the 3 minutes timeout or if I close it, all the xmodmap settings are gone. After I connect the keyboard again, i have to call the xmodmap script again.

Probably the best would be if I can automatically run a script whenever the BT keyboard connects.

Any hints?

Benson 2008-06-09 17:32

Re: xmodmap and bluetooth keyboard
 
Probably need dbus-scripts; I'd bet there's a dbus signal you can catch, but I don't know what.

delaroca 2008-06-11 04:18

Re: xmodmap and bluetooth keyboard
 
Quote:

Originally Posted by Rider (Post 190027)
Probably the best would be if I can automatically run a script whenever the BT keyboard connects.

Any hints?

Try looking at this note,

http://cs.gmu.edu/~sean/stuff/n800/keyboard/

By the way, could you post your xmodmaprc file?

--denis

maillaxa 2008-06-11 23:31

Re: xmodmap and bluetooth keyboard
 
Quote:

Originally Posted by delaroca (Post 190762)
By the way, could you post your xmodmaprc file?

--denis

Yes please ;)

earksiinni 2008-07-02 01:11

Re: xmodmap and bluetooth keyboard
 
Aye, seconded.

Rider 2008-07-02 09:08

Re: xmodmap and bluetooth keyboard
 
You find it here:

http://www.internettablettalk.com/fo...ight=xmodmaprc

tso 2008-07-02 13:58

Re: xmodmap and bluetooth keyboard
 
i believe it to be much more useful in the long run to go directly to the layout files for whatever language your using.

that is, the files in /usr/share/X11/xkb/symbols

Rider 2008-07-02 14:07

Re: xmodmap and bluetooth keyboard
 
Quote:

Originally Posted by tso (Post 198514)
i believe it to be much more useful in the long run to go directly to the layout files for whatever language your using.

that is, the files in /usr/share/X11/xkb/symbols

It is quite a nightmare to play with those files. You will have to edit several files then, and cannot switch to different layouts too.

Even worse: for each OS update your modifications will be lost, and you have to reinstall everything.

The xmodmap solution is much easier and flexible. It is also well documented.

earksiinni 2008-07-03 12:31

Re: xmodmap and bluetooth keyboard
 
is there any way to get xmodmap files to load when a bluetooth keyboard is discovered? for that matter, is there any way for the n800 to automatically discover keyboards the way the 770 does?

tso 2008-07-03 13:33

Re: xmodmap and bluetooth keyboard
 
Quote:

Originally Posted by Rider (Post 198517)
It is quite a nightmare to play with those files. You will have to edit several files then, and cannot switch to different layouts too.

Even worse: for each OS update your modifications will be lost, and you have to reinstall everything.

The xmodmap solution is much easier and flexible. It is also well documented.

heh, maybe so. i ended up going there as it was the easiest way to get my slightly strange bluetooth keyboard to keep its layout between disconnects without having some confused dbus script to hack at.

i only had to alter one file to get the effect i wanted. and i made sure to copy a backup to one of my cards so that when i flashed to diablo i only had to copy it back over the diablo one to get the layout as i wanted it ;)


All times are GMT. The time now is 16:33.

vBulletin® Version 3.8.8