Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: aug on July 26, 2015, 09:45:19 AM

Title: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 09:45:19 AM
Hi,
i have installed tc with apps to the harddrive of a lenovo b590 and have now two problems for which i can't found a solution here or on google.
a. WLAN
    The laptop has a build in wlan-adapter Broadcom BCM43142. The file firmware-broadcom_bcm43xx.tcz is in the tce folder and in onboot.lst. ifconfig shows no wlan-device and the wifi-apps shows only a black screen.
The eth0-device works perfect.
b. Keyboard (german layout)
 All Keys workins in terminal mode (like in midnight commander) but not on the x-desktop. Missing the Symbols accessible with AltGr and can't switch the numeric pad with numlock (no reaction).

Any help are welcome.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 10:42:52 AM
I have a similar wifi chip.

a.)
You might need to blacklist some modules via boot code
Code: [Select]
blacklist=ssb,b43,bcma
I think this information was once included in the .info file of firmware-broadcom_bcm43xx.tcz but isn't currently.

In my case, the wifi device gets assigned to eth1. For convenience, I rename it using this code in /opt/bootlocal.sh
Code: [Select]
# Rename wifi eth* to wlan*.
IFNUM=0
for i in /sys/class/net/eth* ; do
if [ -d $i/wireless ]; then
[ -e /sys/class/net/wlan${IFNUM} ] && IFNUM=$((IFNUM+1))
#echo wlan${IFNUM} `cat $i/address`
nameif wlan${IFNUM} `cat $i/address`
IFNUM=$((IFNUM+1))
fi
done
wifi.sh -a &

I have to enable wifi (via Fn keys) before loading the extension.
If it's loading OnBoot, I have to either enable wifi while booting or before shutdown.
A workarounf could be
Code: [Select]
sudo rmmod wl
# "Enable wifi via Fn keys."
sudo modprobe wl

b.)
If you're using Xorg, you need to tell it about your keyboard locale independently to the Linux console.
/usr/local/share/X11/xorg.conf.d/10-keyboard.conf
Code: [Select]
Section "InputClass"
Identifier       "Keyboard Defaults"
MatchIsKeyboard  "yes"
Option           "XkbLayout"   "de"
Option           "XkbOptions"  "terminate:ctrl_alt_bksp"
EndSection


And remember to include added files to your backup.

Don't know about NUM-Lock. Works here.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 10:57:31 AM

a.)
You might need to blacklist some modules via boot code
blacklist=ssb,b43,bcma
i have this line in extlinux.conf:
APPEND initrd=/tce/boot/core.gz quiet waitusb=5:UUID="..." tce=UUID="..." kmap=qwertz/de-latin1 tz=CET host=b590

... = only placeholders here
did i need to add the blacklist here?

b.)
Not sure which version i using but thinking its xvesa. Don't know how to find out what is currently running.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 11:48:30 AM
a.)
Yes, just add  blacklist=ssb,b43,bcma  like so:
Code: [Select]
APPEND initrd=/tce/boot/core.gz quiet waitusb=5:UUID="..." tce=UUID="..." kmap=qwertz/de-latin1 tz=CET host=b590 blacklist=ssb,b43,bcma

b.)
Code: [Select]
cat /etc/sysconfig/Xserver

I think Xorg provides better functionality for keyboards than Xvesa. So you might want to give it a try.
Otherwise, it might just depend on the software you're using - Aterm can't display unicode characters, Firefox can.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 12:06:11 PM
a.)
Yes, just add  blacklist=ssb,b43,bcma  like so:
Code: [Select]
APPEND initrd=/tce/boot/core.gz quiet waitusb=5:UUID="..." tce=UUID="..." kmap=qwertz/de-latin1 tz=CET host=b590 blacklist=ssb,b43,bcma

i will check it soon....

b.)
Code: [Select]
cat /etc/sysconfig/Xserver

I think Xorg provides better functionality for keyboards than Xvesa. So you might want to give it a try.
Otherwise, it might just depend on the software you're using - Aterm can't display unicode characters, Firefox can.

i get Xvesa
How can i change to xorg???
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 12:12:51 PM
Exit out of X. Either via  Ctrl+Alt+BackSpace  or via the Exit tool from Wbar -> Exit to Prompt.
In Linux console, type
Code: [Select]
tce-load -i Xorg-7.7

If it's not available on your system, you first need to download it
Code: [Select]
tce-load -w Xorg-7.7

If you have Xorg installed, manually or automatically OnBoot, it will be preferred by Tiny Core over Xfbdev and Xvesa.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 12:28:53 PM
ok seems that i need to download it. can only find Xorg-7.7-lib.tcz in the tce folder.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 12:58:51 PM
Oh, and then
Code: [Select]
startx
to launch the X server.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Juanito on July 26, 2015, 01:48:55 PM
The laptop has a build in wlan-adapter Broadcom BCM43142.

I believe you'll need the wl-modules-3.16.6-tinycore extension for this as per:

https://wireless.wiki.kernel.org/en/users/Drivers/b43
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 02:10:13 PM
The wlan is working now! I only had to add the blacklist to the line in the boot up conf.
Only problem i see at the moment is that it did not reconnect after boot. I have to open the wifi-app and select the network - did not get the password question again. After that i get a ip and it works.
Now i have to work the problem with the keyboard and xorg/xvesa.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 02:19:25 PM
You can start  wifi.sh  with the  -a  switch, to automatically connect to the first entry listed in  ~/wifi.db .

For example, you can add this to  /op/bootlocal.sh
Code: [Select]
wifi.sh -a &
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 02:48:26 PM
Fine...but i see a little security issue now. /home/tc contains now a file wifi.db - nothing more than a text file but it contains the plain wlan-password...... :-(
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 03:13:03 PM
Your backup file can be encrypted using the  protect  boot code.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: coreplayer2 on July 26, 2015, 03:23:12 PM
Fine...but i see a little security issue now. /home/tc contains now a file wifi.db - nothing more than a text file but it contains the plain wlan-password...... :-(

lol  this comes up every so often.  If you think about it a little, how can it possibly be a security issue?   if someone is looking at the contents of the file then knowing the contents is irrelevant,  additionally the range of your wifi is relatively small making the scope of vulnerability extremely small.  besides what is anyone going to do with that information anyhow..??
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 26, 2015, 04:12:52 PM
...but with the time it will fill up with the passwords to clients network.... i travel a lot....
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 26, 2015, 04:18:14 PM
You could as well exclude it from your backup file instead.
Code: [Select]
echo wifi.db >> /opt/.xfiletool.lst
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 29, 2015, 03:34:42 PM
You can start  wifi.sh  with the  -a  switch, to automatically connect to the first entry listed in  ~/wifi.db .

For example, you can add this to  /op/bootlocal.sh
Code: [Select]
wifi.sh -a &

I had to add the path in /opt/bootlocal.sh too  => /usr/local/bin/wifi.sh -a &
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 29, 2015, 03:36:59 PM
Not really satisfied with xorg so i think i stay with xvesa. Where can i find some instructions to solve the keyboard problem?
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: gordon64 on July 30, 2015, 07:43:12 AM
Misalf and OP
I can't read any German, nor use that keyboard but I can't see any mention of you needing to load keyboard map from say
 xkeyboard-config  or  kmaps

kmaps seems to have lots of German maps
/usr/share/kmap/qwertz/de_CH-latin1.kmap
/usr/share/kmap/qwertz/de-latin1-nodeadkeys.kmap
/usr/share/kmap/qwertz/de-mobii.kmap
/usr/share/kmap/qwertz/de.kmap
/usr/share/kmap/qwertz/de-latin1.kmap

de_CH appears to be Swiss
a quick google suggested some seem to like the nodeadkeys map?

good luck and hope that helps
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 30, 2015, 09:13:49 AM
Thanks gordon64, you're right that none of us mentioned  kmaps.tcz  to be loaded. However, I assumed aug has it loaded already, otherwise
Code: [Select]
kmap=qwertz/de-latin1
wouldn't have any effect, and I think
Quote
All Keys workins in terminal mode [...] but not on the x-desktop
couldn't be true.

I suspect Tiny Core is just a mess to set up for internationalization, as most how-tos available on the net are for the big distros, where one has to just click around in a GUI tool without having to know anything about what just happened to possible config files, additional to LC_* variables.

Personally, I don't want my OS to speak any other language than its default one, except the possibility to understand my commands via my 'non-default' keyboard. Just setting the hole system to another language can lead to confusion (and slowing things down due to loading additional text strings).
For example, in Germany, dates are written as 'Day Month Year' wile in US it's 'Month Day Year'.
Numbers are treated differently, too. Germany uses the dot "." to visualize power-of-thousands, and the comma "," for everything below zero. In US it's vice versa.

So far I wasn't able to configure Tiny Core this way without having issues with my keyboard or certain programs.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: aug on July 30, 2015, 02:17:41 PM
Thanks gordon64, you're right that none of us mentioned  kmaps.tcz  to be loaded. However, I assumed aug has it loaded already, otherwise
Code: [Select]
kmap=qwertz/de-latin1
wouldn't have any effect, and I think
Quote
All Keys workins in terminal mode [...] but not on the x-desktop
couldn't be true.

I suspect Tiny Core is just a mess to set up for internationalization, as most how-tos available on the net are for the big distros, where one has to just click around in a GUI tool without having to know anything about what just happened to possible config files, additional to LC_* variables.

Personally, I don't want my OS to speak any other language than its default one, except the possibility to understand my commands via my 'non-default' keyboard. Just setting the hole system to another language can lead to confusion (and slowing things down due to loading additional text strings).
For example, in Germany, dates are written as 'Day Month Year' wile in US it's 'Month Day Year'.
Numbers are treated differently, too. Germany uses the dot "." to visualize power-of-thousands, and the comma "," for everything below zero. In US it's vice versa.

So far I wasn't able to configure Tiny Core this way without having issues with my keyboard or certain programs.

Hi All,
on the cli level everything works fine! It's only X. The majority of the keys works so i can work with it.
In Europe english is not really wide used, in some countries it's not even teached at school. For the people it's very important to have a computer in here own language. And... english is not the most used language on earth, but day.month.year is used at the majority of the world same as the 24hour clock and not am/pm.
If Linux spreads more to the desktop its very important to support this.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 30, 2015, 02:56:05 PM
Actually, it is supported by Linux, but Tiny Core is not a ready-to-go distro. It's a Tool-Kit for 'easily' creating a Linux that fits your needs without unneeded blows & whistles. So the users need to find out how to add features not already included or fully supported.
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: gordon64 on July 30, 2015, 07:20:04 PM
Quote
It's only X.
aug
then maybe you can reveal your video card to us by
Code: [Select]
lspci -vvv  just take a snip of the section for VGA
Then reveal what is in your "xorg".lst or what ever you call it please?

Also its not clear to me, and I am the stupid one here  ;D
when you are in X, that you know to use apps that are  <somename>-locale.tcz

I know you must know this by using a terminal which is language capable just as lxterminal-locale

but text editor needs it as well just as leafpad-locale etc......if you wish to use German.

Thats the limit of my brain cells so signing off to the experts.

good luck
Title: Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
Post by: Misalf on July 30, 2015, 07:32:07 PM
*-locale.tcz extensions will be used (automatically loaded) if the lang= boot code was used. As far as I get it, this should only affect text translations of menus, options, manuals etc. but not keyboard input?