everytime i boot, i have to click SLOVENIAN language, because we have y-z mixed on keyboard.
How to auto set this at boot?
in console it works with: (but icon beside clock does not change)
setxkbmap -model pc104 -layout si,si
cheatcode so far not working ...
kmap=si (placed in line APPEND in porteus.cfg, in section COPY2RAM from where i boot)
still trying, bit if someone has some idea ...
autoset KEYBOARD at boot
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
- francois
- Contributor
- Posts: 6443
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: autoset KEYBOARD at boot
1) Here is my menu.lst:
If not there is a bug or si is not an option for kmap. Try in command line:
2) You can achieve the same result with command line or script ( e.g. here file called canadian-french.sh, with executable rights):
setxkbmap ca (for me)
setxkbmap si (for you)
Put the script in /root/.kde3/Autostart folder, so your keyboard settings be there at bootup.
Code: Select all
title porteus v10_32 on sda7/32bit_v12
kernel (hd0,6)/32bit_v12/boot/vmlinuz from_dev=/dev/sda7 from_dir=/32bit_v12/porteus changes=/mnt/sda7/32bit_v12/1.2_cfg toroot kmap=ca autoexec=xconf;telinit~4
initrd=(hd0,6)/32bit_v12/boot/initrd.xz
boot
Code: Select all
root@porteus:~/Desktop# setxkbmap si
root@porteus:~/Desktop#
setxkbmap ca (for me)
setxkbmap si (for you)
Put the script in /root/.kde3/Autostart folder, so your keyboard settings be there at bootup.
Prendre son temps, profiter de celui qui passe.
-
- Black ninja
- Posts: 42
- Joined: 07 Jan 2013, 16:44
- Distribution: PORTEUS
- Location: slovenia
Re: autoset KEYBOARD at boot
Does icon - flag of your country show? with me it works just FLAG stays US, not ours - Slovenian
i used:
APPEND initrd=/boot/initrd.xz vga=791 kmap=si lang=si copy2ram
i used:
APPEND initrd=/boot/initrd.xz vga=791 kmap=si lang=si copy2ram
Re: autoset KEYBOARD at boot
You must be running X server in order to use 'setxkbmap' command.
NjVFQzY2Rg==
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: autoset KEYBOARD at boot
@testsforknowledge
this is a bug in qxkb application used in razor (brokenman is already aware of this afair). 'kmap=si' cheatcode will still work regardless of US flag being still shown in the sys tray so please stick to it.
@Hamza
'kmap=' cheatcode operates when Xorg session is active (part of /opt/porteus-scripts/xorg/paths)
this is a bug in qxkb application used in razor (brokenman is already aware of this afair). 'kmap=si' cheatcode will still work regardless of US flag being still shown in the sys tray so please stick to it.
@Hamza
'kmap=' cheatcode operates when Xorg session is active (part of /opt/porteus-scripts/xorg/paths)
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: autoset KEYBOARD at boot
Yes this is an upstream qxkb bug, but it was the lesser of evils regarding what's available. Please boot to Razorqt desktop without adding kmap cheat, then right click on the flag and choose to remove one language and add you own. Push it to the top of the list. Save your session via the Porteus Settings Centre and you should be good to go.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.