Installation d'Ubuntu sur un portable Packard Bell EasyNote BG46-P-018 (12") (2/2)
Par Cyril le samedi 5 janvier 2008, vers 12:23 - Ubuntu - Lien permanent
Ce qui fonctionne dès l'installation
- le wifi (via le driver propriétaire chargé de suite par le nouveau gestionnaire de drivers Ubuntu)
- les magnifiques boutons pour activer le wifi et le mode éco
- le graveur externe (qui se branche avec deux prises usb, marqué Asus dessus (tiens comme c'est bizarre...), et qui est bien géré par le bios puisqu'on peut booter sur le cd qui se trouve dedans)
- le lecteur de cartes mémoires SD
Ce qui ne fonctionne pas dès l'installation
- le son
- la webcam
- l'affichage
Maintenant que le problème posé est, voyons comment le résoudre.
[Description technique du portable Packard Bell BG46-P-018]
Le son
$ lspci -n | grep `lspci | grep -i audio | awk '{print $1}'`
00:1b.0 0403: 8086:284b (rev 03)
$ cat /proc/asound/card0/codec* | grep Codec
Codec: Realtek ALC660-VD
C'est très simple à faire, mais pas du tout logique : il faut dire au driver son de gérer la carte comme une carte d'un portable de marque Lenovo (marque chinoise ayant racheté l'activité portable d'IBM récemment). En une ligne, ça donne :
echo "options snd-hda-intel model=lenovo" | sudo tee -a /etc/modprobe.d/alsa-base
Normalement, recharger alsa ne suffit pas. Il est peut-être possible de décharger et recharger le module du son, mais le plus simple est de redémarrer la machine.
La webcam
En fait, contrairement à ce que l'on croit au début, la webcam (04f2:b012 Chicony Electronics) fonctionne « très bien » (mais à l'envers). Le driver uvcvideo qui la gère est chargé au démarrage, pas besoinde l'installer. Les deux problèmes sont néanmoins :
- le driver ne fonctionne qu'avec l'API v4l2, et pas avec v4l qui est plus vieux. Ce qui veut dire que seul les logiciels acceptant v4l2 pourront voir l'image de la webcam. Par exemple, il faut choisir v4l2 dans les préférences d'Ekiga (c'est v4l qui est choisi par défaut), Kopete ou amsn fonctionnent très bien, camorama ne fonctionne pas (enfin j'ai pas essayé mais c'est ce que j'ai lu), et vlc ne fonctionne pas dans sa version actuelle 0.8.6b, mais j'ai essayé la version en développement 0.9 et pas de problème.
- la webcam, au moins sur ce portable, est montée à l'envers. Il n'y a pas de contrôle sur la webcam pour retourner l'image, ce qui veut dire que le driver ne pourra pas fournir d'image à l'endroit. Il faut donc un logiciel qui puisse tourner tout seul (rotation 180° ou vflip) l'image. Je n'en ai pas trouvé, à part vlc 0.9. (je cherche encore, si vous avez des infos dites-moi... mais Kopete par exemple n'a pas de plugin pour faire ça, c'est dommage). Pour info, sous Windows (je n'ai pas testé, j'ai lu ça), le driver comporte une couche suplémentaire qui lui permet de retourner l'image logiciellement. C'est lourd et moche, je comprends très bien que le driver linux ne fasse pas cela... Et ce problème touche un certain nombre de modèles Asus (W7S, F3Sa, G1S au moins).
L'affichage
C'est gênant : l'affichage se bloque sur une résolution 1024x768 (donc 4/3 et pas 16/9), et ne peut être modifiée, sauf en 800x450 je crois, c'est-à-dire le minimum, c'est très moche. Le pire, c'est que le bureau est étendu sur les côtés, on a l'impression que ça fonctionne mais non, on est sur la mauvaise résolution. Le problème, c'est que la carte vidéo voit une sortie télé allumée et se bloque donc en 4/3. La commande xranrd sans argument (n'hésitez pas à lire man xrandr pour connaître les arguments) nous dit cela. Il faut la désactiver. Voilà ce qu'il faut coller dans le fichier /etc/X11/xorg.conf :
# xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. # # Edit this file with caution, and see the xorg.conf manual page. # (Type "man xorg.conf" at the shell prompt.) # # This file is automatically updated on xserver-xorg package upgrades *only* # if it has not been modified since the last upgrade of the xserver-xorg # package. # # If you have edited this file but would like it to be automatically updated # again, run the following command: # sudo dpkg-reconfigure -phigh xserver-xorg Section "InputDevice" Identifier "Generic Keyboard" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "fr" EndSection Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ImPS/2" Option "ZAxisMapping" "4 5" Option "Emulate3Buttons" "true" EndSection Section "InputDevice" Identifier "Synaptics Touchpad" Driver "synaptics" Option "SendCoreEvents" "true" Option "Device" "/dev/psaux" Option "Protocol" "auto-dev" Option "HorizEdgeScroll" "0" EndSection Section "Device" Identifier "Output-LVDS" Boardname "intel" Busid "PCI:0:2:0" Driver "intel" Option "Monitor-TV" "TVOutput" EndSection Section "Monitor" Identifier "Monitor-LVDS" Vendorname "Generic LCD Display" Modelname "LCD Panel 1280x800" Horizsync 31.5-50.0 Vertrefresh 56.0 - 65.0 EndSection Section "Monitor" Identifier "TVOutput" Option "Ignore" "true" EndSection Section "Screen" Identifier "Screen-LVDS" Device "Output-LVDS" Monitor "Monitor-LVDS" Defaultdepth 24 SubSection "Display" Depth 24 Virtual 1280 800 Modes "1280x800" "1024x768@60" "1024x768" "800x600" EndSubSection EndSection Section "ServerLayout" Identifier "Default Layout" Screen "Screen-LVDS" Inputdevice "Generic Keyboard" Inputdevice "Configured Mouse" Inputdevice "Synaptics Touchpad" EndSection
Une fois ceci fait, il suffit de se déconnecter/reconnecter pour voir l'écran « en wide »...
Note to non french-speaking users: the line "XkbLayout fr" defines the keyboard map as an azerty, you should probably change this in "en" if you want a qwerty map.
Problème encore à régler : la sortie VGA qui ne fonctionne pas super bien quand l'écran branché est en 4/3. Fn+F5 ne fait visiblement rien, et le résultat sur l'écran (un LCD 19pouces 4/3) n'est pas toujours la même...
Compiz
La carte vidéo (Intel GM965/GL960) est blacklistée par les développeurs de Compiz : ça veut dire que par défaut, contrairement à un ordi « non blacklisté », Compiz (les effets « 3D ») est désactivé. Pour l'activer, facile, il suffit de mettre la bonne ligne au bon endroit :
echo SKIP_CHECKS=yes | sudo tee -a /etc/xdg/compiz/compiz-manager
(et là, Compiz est activé pour tous les utilisateurs puisqu'on a écrit dans les fichiers système)
Problème (y en a toujours en fait :-) ) : les vidéos ne peuvent plus être lues. Il faut en fait dire aux différents logiciels vidéo de ne pas utiliser le module de sortie vidéo Xv, mais un autre, X11 ou OpenGL (j'ai trouvé l'info ici).
Pour VLC, sans lancer le logiciel, on peut faire directement en ligne de commande :
@@mkdir .vlc && echo -e "[main]
vout=x11" > .vlc/vlcrc@@
Commentaires
MErci, merci, merci
Ca c'est du tuto sur mesure !!
My pleasure ;)
C'est genial! Il y a quelques jours j'ai acheté un Packard Bell Easynote BG-46-P-001 et après avoir lu ton post, j'ai reussi à faire tout fonctionner avec Ubuntu. Bon travail et merci bien.
Grand merci pour toutes tes recherches !! En un mot : Beau travail !
Hi
thanks for your tutorial! I tried to get sound working, but
unfortunately it didn't work. Which version of ubutu are you
using?I use H8.04..
jos
could you check which soundcard you have? maybe I have a newer
version of the laptop (?)
lspci -v:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
Subsystem: Unknown device 1631:c10a
Flags: bus master, fast devsel, latency 0, IRQ 23
Memory at feaf8000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
hello
it now works, but only with *all volumes turned to maximum*..
jos
First, the version which is now installed on the laptop is still 7.10 (gutsy), which was the last release at this time (last january).
Second, here is my lspci :
We have exactly the same result, but I think the two first commands under "Le son" title better identify the soundcard. You should try this to see if you have the real same card as mine. As far as I know, the codec is really important. If is not the same for you, try this page (where I got my informations). You should try all possibilities if needed.
Argh, you've been faster than me. You've done the hardest, you now just have to set visible all switches and cursors as possible, and set up their values... Good luck!
hi
it worked, but now it doesnt work anymore.. what did i change? i dont know....
Will look again tomorrow..
anyhow, the screen now also works! Only one note: the xorg.conf file above
sets an 'azerty' keyboard, which made it kind of difficult to log in after restarting X
to try the new config file.. So other users, beware of the line with 'fr'...
thanks for your effort!
jos
hi cyril,
have found the error: when modifying the file 'alsa-base' i only
restarted alsa ('alsa reload') but i should have rebooted the computer.
After a reboot it now works!
time to sleep, and thanks again...
jos
I've just modified the post to take into account your comments. Thanks for this. Glad to have helped you.
Thanks a lot for this article !!
I installed an ubuntu 8.04, and eveything seemed to work perfectly at first, excepted the soundcard, which had to be added in the alsa configuration. I had to look twice at my display, after reading this page, to figure out that it was NOT the normal resolution !! :-) Well, it looked somewhat fuzzy indeed, but I did not really notice !
So, thanks, in my name, and in the name of my eyes, for removing all this blurriness ! :-)
Merci pour ces informations !
Le son fonctionne avec ta manip sur un EASYNOTE BG46-P-041
~$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
Hi Cyril,
Just wondering if you are stil using ubuntu, and if you upraded to the latest version 8.02? I've been having a few issuse with the suspend (sleep?) button. It works fine, but after waking up the computer again, the screen brightness is set to dark. This also happens when the screensaver starts. The screen brightness is set to dark, and I have to manually reset it to light again. (turning off screensaver with xset s off doesn't work..) Do you have the same issues?
Jos
Hi
Yep, I'm still using Ubuntu more than ever :) and I recently upgraded to Hardy (8.04) all my pcs. I'm not the one who actually uses this laptop, and I can see it only on weekends. But the owner hasn't told me about any issue, and I'm pretty sure she would have if needed.I must say one more thing: I did not really upgrade, but I reinstalled in another partition, without moving /home. And it seems to work perfectly like this.
If I were you, I'd try to boot on a live-cd, to see if the issue is still there. I've never seen things like this, so it would be hard for me to help you. When you say "I have to manually reset it", you mean reset the brightness or restart the computer ? 'Cause problems of display which force you to restart, I know how to manage this; brightness settings going crazy, I don't).
Sorry... But feel free to answer again if anything changes! (and thanks for your comments)
Hi, with the EASYNOTE BG46-P-041 and ubuntu Hardy I have the same problem :
the screen brightness is set to dark at the starting and I don't know why !
hi cyril
i mean I have to ajust the brightness by hand (re-set to good value) . This
darkening also happens when x screensaver starts, and then i hit a key again to
light up the panel. Then the brightness also is too dark... Well I'll have a look around
some more for solutions, and post it here when I find one..
jos