You are not logged in.

#26 2012-07-13 10:02:54

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Xorg and keyboard LED's

Is there anyway to run that without needing sudo or root access? Just so I can automate it.

Sure.

Edit your sudoers file:

$ sudo EDITOR=nano visudo
Defaults editor=/usr/bin/nano

root    ALL=(ALL) ALL
dspider ALL=(ALL) ALL

dspider ALL=NOPASSWD: /bin/mount, /bin/umount
dspider arch=NOPASSWD: /sbin/reboot, /sbin/poweroff, /usr/bin/kbd_mode -u

The first line makes nano the default editor for this file. Then you can just run:

$ sudo visudo

Then add something like this to your ~/.xinitrc (or ~/.config/openbox/autostart, etc):

sudo kbd_mode -u &
exec ck-launch-session dbus-launch openbox-session

And don't forget to mark it as solved.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#27 2012-07-13 10:06:47

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Xorg and keyboard LED's

And by the way, the man page for kbd_mode says that the "-u" argument puts the keyboard in UTF-8 mode...

Post your rc.conf. I'm curious what LOCALE is in there. You probably skipped it when reading the Beginner's Guide (here and here).


https://wiki.archlinux.org/index.php/Lo … -8_example

Last edited by DSpider (2012-07-13 10:22:45)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#28 2012-07-13 11:14:07

Kopfweh
Member
Registered: 2011-08-06
Posts: 77

Re: [Solved] Xorg and keyboard LED's

Well I have:

# LOCALIZATION
# ------------
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Berlin"
KEYMAP="de-latin1-nodeadkeys"
CONSOLEFONT="default8x16"
CONSOLEMAP=
LOCALE="de_DE.UTF-8"
DAEMON_LOCALE="yes"
USECOLOR="yes"

...so UTF-8 I think, but sudo kbd_mode -u does it for me too!

edit: Thank you very much, DSpider!

Last edited by Kopfweh (2012-07-13 11:14:48)

Offline

#29 2012-07-13 18:30:28

edgley
Member
From: UK
Registered: 2011-07-06
Posts: 27
Website

Re: [Solved] Xorg and keyboard LED's

Thanks DSpider, works like a charm; I tend to overlook the simple things tongue

my rc.conf:

HARDWARECLOCK="localtime"
TIMEZONE="Europe/London"
KEYMAP="uk"
CONSOLEFONT="ter-114n"
CONSOLEMAP="8859-1"
LOCALE="en_GB.UTF-8"
DAEMON_LOCALE="yes"
USECOLOR="yes"
MODULES=()
USEDMRAID="no"
USEBTRFS="no"
USELVM="no"
HOSTNAME="longbow"
interface=eth0
address=192.168.1.127
netmask=255.255.255.0
broadcast=192.168.1.127
gateway=192.168.1.1
NETWORK_PERSIST="no"
DAEMONS=(syslog-ng network dbus crond alsa sshd)

As I say, any other keyboard worked as expected. Just to say as well, the lock button would previously turn on but not turn off, this also got fixed big_smile

Marked as solved though; and again, thanks for all the help! smile

Last edited by edgley (2012-07-13 18:32:45)

Offline

#30 2012-07-13 19:20:50

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [Solved] Xorg and keyboard LED's

Just to be clear, was it the LOCALE from rc.conf or kbd_mode that fixed it?


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#31 2012-07-14 14:42:28

edgley
Member
From: UK
Registered: 2011-07-06
Posts: 27
Website

Re: [Solved] Xorg and keyboard LED's

Hi DSpider,

It was the kbd_mode command (my initial sentence in reply to you was regarding visudo smile).

Offline

#32 2014-04-29 16:56:06

asg1448
Member
Registered: 2014-04-12
Posts: 74

Re: [Solved] Xorg and keyboard LED's

after kbd_mode -u, when you are in WM (kde or gnome of xfce, or what have you), and when you press Alt+F2 - does it bring you "Run" dialog, or does it switch you to the console instead?

Offline

#33 2014-04-30 17:00:01

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved] Xorg and keyboard LED's

asg1448, this thread was last posted in 2 years ago. Please do not necrobump threads as Archlinux changes quite frequently due to its rolling release nature.

After 2 years, I don't believe the OP is still looking for answers.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB