You are not logged in.

#1 2015-04-02 15:35:37

rob.til
Member
Registered: 2011-02-12
Posts: 41

Keyboard issue [fixed]

I spend some time to figure out a keyboard problem -
/etc/X11/xorg.conf.d/01-keyboard-layout.conf just being ignored.
Turns out ~/.config/openbox/autostart executes  'setxkbmap gb'  unconditionally.

Last edited by rob.til (2015-04-14 15:56:34)

Offline

#2 2015-04-02 23:58:51

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

Just checked source and autostart is set too 'us'


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#3 2015-04-03 11:56:37

rob.til
Member
Registered: 2011-02-12
Posts: 41

Re: Keyboard issue [fixed]

I just installed archbang-150328-x86_64 on a real drive
- locale and keyboard set to en_US

~/.config/openbox/autostart
[..]
# Enable as required
#xbacklight -set 100 &
#/usr/bin/synclient TouchpadOff=1 &
#xxkb &
setxkbmap gb &

(sleep 2 && spacefm -d) &
[..]

Offline

#4 2015-04-03 12:59:55

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

Quite odd, easy fix though change autostart to what you need. I will take a look at my source am sometimes naughty and run with gb for testing.

Thanks for heads up,,,


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#5 2015-04-06 18:22:57

rob.til
Member
Registered: 2011-02-12
Posts: 41

Re: Keyboard issue [fixed]

easy fix though

Yes, once you know where to look for
But ~/.config/openbox/autostart isn't a likely (documented) place

Archbang installs etc/X11/xorg.conf.d/01-keyboard-layout.conf
and later asks for a keyboard layout - with the default set to KEYMAP_XKB="gb"

I would expect it modifies 01-keyboard-layout.conf: Option "XkbLayout" "us, gb, ru, ca, fr"
and not overriding it with ~/.config/openbox/autostart: setxkbmap XX &

Offline

#6 2015-04-07 00:02:04

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

Thnk it modifies autostart (via installer), will change default too 'us'. Xorg config is from way back when I first started ArchBang, just left it..

Thanks


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#7 2015-04-07 09:40:24

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#8 2015-04-13 20:35:03

rob.til
Member
Registered: 2011-02-12
Posts: 41

Re: Keyboard issue [fixed]

Why do you think installing contradictory configurations files
(etc/X11/xorg.conf.d/01-keyboard-layout.conf vs ~/.config/openbox/autostart)
is a goood idea?

Offline

#9 2015-04-13 23:17:27

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

I have too cover if a user changes desktop post install. Might remove xorg config file from future releases.


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#10 2015-04-14 09:10:01

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Keyboard issue [fixed]

Mr Green wrote:

Thnk it modifies autostart (via installer), will change default too 'us'.

Mr Green wrote:

I have too cover if a user changes desktop post install. Might remove xorg config file from future releases.

In looking at the installer, I see the following line:

sed -i "s/setxkbmap us/setxkbmap ${KEYMAP_XKB:0:2}/g" $DESTDIR/home/ablive/.config/openbox/autostart

Couldn't we change the destination to be the xorg location (which, TBH, is the first place I would look)?  Personally, I wouldn't worry about post-install changes - let the user figure it out.

Offline

#11 2015-04-14 12:15:46

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

It was more the global setti over user, but I can change if required. Would that allow me too remove setxkbmap from autostart?


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#12 2015-04-14 12:23:23

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Keyboard issue [fixed]

Mr Green wrote:

Would that allow me too remove setxkbmap from autostart?

Yes, I think so.  Don't see why not anyway.  It's not impossible but I can't think there would be many cases where someone would require multiple accounts with different keyboard layouts.

Offline

#13 2015-04-14 12:58:29

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

Ok so I will run with us in xorg config and simply sed in required layout from installer.

Sorted!


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#14 2015-04-14 15:56:03

rob.til
Member
Registered: 2011-02-12
Posts: 41

Re: Keyboard issue [fixed]

I welcome this move - fixed.

Offline

#15 2015-04-14 16:49:23

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Keyboard issue [fixed]

Thanks again for the report.  Little fixes like this really do make a difference IMO

Offline

#16 2015-04-15 01:06:43

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#17 2015-04-15 10:10:28

oliver
Administrator
Registered: 2010-11-04
Posts: 2,209

Re: Keyboard issue [fixed]

Looks good to me.  Just have to remember that if you ever add more that file, the sed command might pick it up.  For example, if you add:

# user defined stuff here

and then change keymap to GB it would be changed to

# GBer defined stuff here

But as it is now, it's fine.  Just over-thinking things.

Offline

#18 2015-04-15 13:57:08

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Keyboard issue [fixed]

Added for any next release ....


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB