WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Lenovo B590 WLAN/Keyboard problem TC 6.3  (Read 9919 times)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Lenovo B590 WLAN/Keyboard problem TC 6.3
« 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #1 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.
Download a copy and keep it handy: Core book ;)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #2 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #3 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.
Download a copy and keep it handy: Core book ;)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #4 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???

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #5 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.
Download a copy and keep it handy: Core book ;)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #6 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #7 on: July 26, 2015, 12:58:51 PM »
Oh, and then
Code: [Select]
startx
to launch the X server.
Download a copy and keep it handy: Core book ;)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #8 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

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #9 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.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #10 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 &
Download a copy and keep it handy: Core book ;)

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #11 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...... :-(

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #12 on: July 26, 2015, 03:13:03 PM »
Your backup file can be encrypted using the  protect  boot code.
Download a copy and keep it handy: Core book ;)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #13 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..??

Offline aug

  • Jr. Member
  • **
  • Posts: 74
Re: Lenovo B590 WLAN/Keyboard problem TC 6.3
« Reply #14 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....