Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread patrick keshishian
On 1/23/14, Miod Vallat wrote: >> Something is inconsistent here. Do you mean the uk is not the >> default? Or there is a difference between mux default and new attach >> default? How does one know whether plugging a keyboard in is >> reattaching it or attachning a new one? > > There is a differen

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Miod Vallat
> Something is inconsistent here. Do you mean the uk is not the > default? Or there is a difference between mux default and new attach > default? How does one know whether plugging a keyboard in is > reattaching it or attachning a new one? There is a difference between a keyboard which can provide

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Ted Unangst
On Thu, Jan 23, 2014 at 20:57, Miod Vallat wrote: > - when changing the keyboard layout of a particular keyboard with an > ioctl (i.e. using kbd(8) or wsconsctl(8)), the layout will become the > default layout of the mux for new keyboard attachments. > Now I plug a Sun USB keyboard with the uk la

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Miod Vallat
[cc: tech@, reply-to set to tech@] > After suspend or hibernate, I lose my designated console keyboard layout > (sv) and it reverts to the default (us?) wsconsctl shows that the > encoding to still be sv, > > keyboard.encoding=sv > > What setting(s) am I missing to preserve the designat

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Ted Unangst
On Thu, Jan 23, 2014 at 16:20, Lars Nooden wrote: > On Thu, 23 Jan 2014, David Coppa wrote: >> Maybe the following trick? >> >> # mkdir -p /etc/apm && \ >> printf "#!/bin/sh\n/sbin/wsconsctl keyboard.encoding=sv\n" > >> /etc/apm/resume && \ >> chmod 0755 /etc/apm/resume >> >> Followed by: >> >> # /

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Lars Nooden
On Thu, 23 Jan 2014, David Coppa wrote: > Maybe the following trick? > > # mkdir -p /etc/apm && \ > printf "#!/bin/sh\n/sbin/wsconsctl keyboard.encoding=sv\n" > > /etc/apm/resume && \ > chmod 0755 /etc/apm/resume > > Followed by: > > # /etc/rc.d/apmd restart Thanks. That was the right directio

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Janne Johansson
2014/1/23 Lars Nooden > After suspend or hibernate, I lose my designated console keyboard layout > (sv) and it reverts to the default (us?) wsconsctl shows that the > encoding to still be sv, > > keyboard.encoding=sv > > What setting(s) am I missing to preserve the designated layout acro

Re: restoring keyboard layout after suspend or hibernate

2014-01-23 Thread David Coppa
On Thu, Jan 23, 2014 at 1:13 PM, Lars Nooden wrote: > After suspend or hibernate, I lose my designated console keyboard layout > (sv) and it reverts to the default (us?) wsconsctl shows that the > encoding to still be sv, > > keyboard.encoding=sv > > What setting(s) am I missing to preser

restoring keyboard layout after suspend or hibernate

2014-01-23 Thread Lars Nooden
After suspend or hibernate, I lose my designated console keyboard layout (sv) and it reverts to the default (us?) wsconsctl shows that the encoding to still be sv, keyboard.encoding=sv What setting(s) am I missing to preserve the designated layout across suspend/hibernate? Regards, /