Summary: | sys-apps/baselayout-1.12.9-r2: keyboard is set to utf8 only in first console | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pacho Ramos <pacho> |
Component: | [OLD] baselayout | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matej |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
keymaps-initd.diff
keymaps.diff keymaps.diff |
Description
Pacho Ramos
2007-09-13 17:21:32 UTC
Created attachment 130854 [details, diff]
keymaps-initd.diff
I don't see how that fixes anything .... (In reply to comment #2) > I don't see how that fixes anything .... > Running /usr/bin/kbd_mode -u in all ttys, not only in first one ... :-| - /usr/bin/kbd_mode -u + for n in $(seq 1 "${RC_TTY_NUMBER}") ; do + /usr/bin/kbd_mode -u + done How is that running it in other ttys? You're just running it more times. (In reply to comment #4) > - /usr/bin/kbd_mode -u > + for n in $(seq 1 "${RC_TTY_NUMBER}") ; do > + /usr/bin/kbd_mode -u > + done > > How is that running it in other ttys? You're just running it more times. > Without this seems that kbd_mode is only run in the first console, with this, it is also run in rest consoles. I token this from /etc/init.d/keymaps...: ebegin "Setting terminal encoding to ${termmsg}" for n in $(seq 1 "${RC_TTY_NUMBER}") ; do echo -n -e ${termencoding} > ${ttydev}${n} done eend 0 > ${ttydev}${n}
That's the bit that tells it which tty to work on.
kbd_mode -u < ${ttydev}${n}
is probably what you want.
(In reply to comment #6) > > ${ttydev}${n} > > That's the bit that tells it which tty to work on. > > kbd_mode -u < ${ttydev}${n} > > is probably what you want. > I haven't tried this :-|, but seems ok :-) I get this error restarting service: /etc/init.d/keymaps: line 39: ${ttydev}${n}: ambiguous redirect You did configure the ttydev and n variables yes? (In reply to comment #9) > You did configure the ttydev and n variables yes? > Where should I configure them? echo -n -e ${termencoding} > ${ttydev}${n} works fine for me, the problem is only with kbd_mode If I remove the ">" or "<" it doesn't leave this error, but doesn't resolve the problem. Seems that kbd_mode only works for the console when it's run... Thanks Comment on attachment 130854 [details, diff] keymaps-initd.diff Seems that my patch doesn't work also :'( But the bug is still here: kbd_mode -u is only executed in first console I was "fixing" this problem adding kbd_mode -u to my /etc/bash/bashrc, but this causes bug #186707 Does anybody know how kbd_mode -u can be run in all consoles? Thanks a lot Created attachment 131581 [details, diff]
keymaps.diff
I found the solution :-D
The attached diff fixes the problem, but upgrading to sys-apps/kbd-1.13-r1 is needed
Thanks :-)
You're almost there! You need to move the ttydev code so it's above your loop and use it in the loop, as the tty names differ sometimes. Maybe move it to the top of the function. Created attachment 131592 [details, diff]
keymaps.diff
Updated diff ;-)
Great job! OK, this has been added to our svn repo and will be in baselayout-2.0.0_rc5. I'm not interesting in bumping baselayout-1 just for this. Thanks (In reply to comment #15) > Great job! > > OK, this has been added to our svn repo and will be in baselayout-2.0.0_rc5. > I'm not interesting in bumping baselayout-1 just for this. When adding this feature to baselayout-2, please also introduce sys-apps/kbd-1.13-r1 dependency (probably inside kernel_linux ? ( ) ), as with my kbd-1.12-r8 /etc/init.s/keymaps complains that -C is unknown switch to kbd_mode and does not set keyboard mode at all. (thus a regression) I know sys-apps/kbd-1.13-r1 is stable for many arches now, but I have a feeling that dependencies should be stable-state agnostic. Regards, Matěj Laitl (It looks like normal users do not have bugzie right to reopen other's bugs?) |