Control: tags -1 + patch On Thu, Jan 09, 2014 at 10:31:55AM +0100, Olivier Berger wrote: > Hi. > > When in auto mode, it only works when not in laptop mode, but it is quite > handy to use an external keyboard with a laptop, in which case, it should act > as if not in laptop mode. > > I don't know how to detect this in a shell script. >
It seems the following works at my place, provided udev is installed, changing /etc/X11/Xsession.d/55numlockx to do : *) NUMLOCK=on ltd=/usr/sbin/laptop-detect [ ! -x $ltd ] || ! $ltd || NUMLOCK=off fkb=/lib/udev/findkeyboards [ -x $fkb ] && /lib/udev/findkeyboards | grep -q "USB keyboard" && NUMLOCK=on ;; Hope this helps. Best regards, -- Olivier BERGER http://www-public.telecom-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8 Ingenieur Recherche - Dept INF Institut Mines-Telecom, Telecom SudParis, Evry (France) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org