Pages : 1
#1 Le 07/05/2011, à 09:33
- wanito
vga switcheroo sur ubuntu 11.04
bonjours tous le monde j'ai un petit soucis avec mon pc portable , je vient de passer a ubuntu 11.04 et je n'arive pas a fair marcher vga switcheroo
(qui marchait tres bien sous 10.10)
donc voila j'ai suivis ce tuto qui avais fontionner sous 10.10 http://asusm51ta-with-linux.blogspot.co … nel-2.html
mais la quand je veut switcher le terminal me dit :cat: /sys/kernel/debug/vgaswitcheroo/switch: Permission non accordée
cat: /sys/kernel/debug/vgaswitcheroo/switch: Permission non accordée
or je penssait qu' en ajoutant la ligne "chown username /sys/kernel/debug/vgaswitcheroo/switch" au fichier "/etc/rc.d/rc.local" j'avait les droit au demarage
enfin voila j'espere que vous comprendrez mes expliquations
mais la je trouve rien sur le net pour m'aider
merci d'avance
Hors ligne
#2 Le 10/05/2011, à 19:23
- wanito
Re : vga switcheroo sur ubuntu 11.04
re je vient peut etre de touver une voie pour mon probleme sur ce forum : http://ubuntuforums.org/showthread.php?t=1744188
mais pour etre fran , je ne comprend pas tous ce qu'ils disent sur ce forum si quelqu'un peut m'aider a y voir plus clair
merci
Hors ligne
#3 Le 10/05/2011, à 21:36
- maxou88
Re : vga switcheroo sur ubuntu 11.04
Bonjour wanito,
Je viens de voir ton sujet et sa m'intéresse fortement, tu as la technologie optimus ? ou tu as deux carte graphiques avec une ati / intel ?
J'ai actuellement une Nvidia /intel mais je n'ai pas encore installé de distribution linux sur ce pc portable car si je ne peux pas switcher entre les deux cartes graphiques sa m'intéresse pas car l'autonomie si les deux tournent ...
Avec ubuntu 10.10 sa marcher ?
Merci d'avance !
Hors ligne
#4 Le 11/05/2011, à 18:36
- shann_
Re : vga switcheroo sur ubuntu 11.04
Bonsoir Maxou88,
Je possède moi aussi un eeepc (modèle 1215N) avec la technologie Optimus (Nvidia ION2 /intel i915)
Avec ubuntu 10.10 vgaswitcheroo ok
tu met ce texte dans /etc/rc.local
chown $ton_username /sys/kernel/debug/vgaswitcheroo/switch
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
Ce bout de code à pour effet d'ETEINDRE ELECTRIQUEMENT la carte dédié Nvidia afin d'optimisé la batterie.
Faute de mieux j’utilisai cette technique sous ubuntu 10.10.
!! Sous Ubuntu 11.04 le dossier /sys/kernel/debug/vgaswitcheroo n'est pas présent malgrè la configuration du kernel correct
vgaswitcheroo=y
!!
Je suis entrain de compiler le kernel mis a disposition par Tim Kernel 2.6.38 Atom afin de l'adapter pour moi
support de la carte wifi broadcom 4313 (pilote libre brcm80211) + support de mon système de fichier XFS.
Wanito je vais regarder ton lien pour essayer de comprendre et voir si je peux en sortir une solution viable pour l'eeepc 1215N (Nvidia ION2/ intel i915)
et autre
Bienvenu dans l'aventure EEEpc
Dernière modification par shann_ (Le 11/05/2011, à 18:53)
Hors ligne
#5 Le 11/05/2011, à 20:21
- maxou88
Re : vga switcheroo sur ubuntu 11.04
Bonjour shann_
Merci de ta réponse mais je veux installer si je peux switcher de CG, ubuntu 11.04 . Mais j'ai lu que pour un Eeepc on pourrais switcher beaucoup plus facilement qu'un pc portable normale.
Hors ligne
#6 Le 11/05/2011, à 20:33
- shann_
Re : vga switcheroo sur ubuntu 11.04
Actuellement la technologie Optimus n'est pas supporté sous Linux (Général), bien que des bouts de codes / solutions sont mis à disposition sur le Net.
Si tu veux vraiment pouvoir switcher de CG, je suis désolé mais tu devra garder Seven.
Personnelement mon netbook me sert à faire du développement, faire mes présentations (diapo), navigation web, écouter ma musique, regarder mes vidéos etc ... .
Pour le jeux j'ai mon second portable plus puissant ^^ (AMD Athlon x64 1.8Ghz, 4Go RAM, 640Go HDD, carte Radeon HD 3200.).
EDIT: Tu peux plus ou moins switcher de CG mais ce n'est pas sans risque de freezer le système.
echo ON > /sys/kernel/debug/vgaswitcheroo/switch => Réactive la Nvidia
Avec le pilote nouveau + i915 (donc les deux CG activés) j'ai avec glxgears 60fps.
Dernière modification par shann_ (Le 11/05/2011, à 20:40)
Hors ligne
#7 Le 11/05/2011, à 22:00
- wanito
Re : vga switcheroo sur ubuntu 11.04
salut masou88 pour les question que tu as poser je dirait que shann t'a donner les bonne reponse mais des gens travail pour trouver des solution sur les carte graphiques a technologie optimus
salut shann , pour le fichier /sys/kernel/debug/vgaswitcheroo/switch , perso il est bien a ça place chez moi .....(mmmm tu serai en discrete card dans ton bios par hazard , car perso quand je selectionne ce mode dans mon bios ce fichier disparait)
Hors ligne
#8 Le 11/05/2011, à 22:52
- shann_
Re : vga switcheroo sur ubuntu 11.04
bonsoir wanito non je n'ai pas d'option dans mon bios pour piloter mes cartes graphiques ce qui est dommage.
Je vais réinstaller la 10.10 car a priori la manip de ton lien a marché une fois puis plus rien
j'avais mis acpi_osi=linux sur la ligne GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
au 1er reboot ok j'avais accès au fichier puis au second reboot plus de dossier vgaswitcheroo.
Hors ligne
#9 Le 12/05/2011, à 13:04
- maxou88
Re : vga switcheroo sur ubuntu 11.04
Merci à vous , quand je dis switcher je ne dis pas forcement sans redémarrer ça c'est pas un problème si il faut modifier le rc et redemarrer pour que la carte graphique nvidia fonction sans intel c'est pas un soucis
Hors ligne
#10 Le 12/05/2011, à 18:34
- wanito
Re : vga switcheroo sur ubuntu 11.04
en fait maxou88 il ne faut pas redémarrer completement ton pc tu a juste besoin de redémarrer ta session
si tu est sous ubuntu 10.10
c'est super simple a metre en place :
tu ouvre un terminal "Ctrl+Alt+T"
tu tape " $sudo gedit /etc/rc.local "
tu ajoute :
chown "username" /sys/kernel/debug/vgaswitcheroo/switch # change "username" avec ton nom d'utilisateur
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
il faut coller ça juste avant " exit 0 ", tu enregistre
et apres tu peut te fair un ptit script shell comme ça :
#!/bin/bash
# "switch_between_cards.sh" script by RM, with useful changes from LoLL
# version 20101107
pci_integrated=$(lspci | grep VGA | sed -n '1p' | cut -f 1 -d " ")
pci_discrete=$(lspci | grep VGA | sed -n '2p' | cut -f 1 -d " ")
integrated=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_integrated | grep -o -P ':.:...:')
discrete=$(cat /sys/kernel/debug/vgaswitcheroo/switch | grep $pci_discrete | grep -o -P ':.:...:')
name_integrated=$(lspci | grep VGA | sed -n '1p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g")
name_discrete=$(lspci | grep VGA | sed -n '2p' | sed -e "s/.* VGA compatible controller[ :]*//g" | sed -e "s/ Corporation//g" | sed -e "s/ Technologies Inc//g" | sed -e 's/\[[0-9]*\]: //g' | sed -e 's/\[[0-9:a-z]*\]//g' | sed -e 's/(rev [a-z0-9]*)//g' | sed -e "s/ Integrated Graphics Controller//g")
if [ "$integrated" = ":+:Pwr:" ]
then
integrated_condition="(*) - Power ON"
elif [ "$integrated" = ": :Pwr:" ]
then
integrated_condition="( ) - Power ON"
elif [ "$integrated" = ": :Off:" ]
then
integrated_condition="( ) - Power OFF"
fi
if [ "$discrete" = ":+:Pwr:" ]
then
discrete_condition="(*) - Power ON"
elif [ "$discrete" = ": :Pwr:" ]
then
discrete_condition="( ) - Power ON"
elif [ "$discrete" = ": :Off:" ]
then
discrete_condition="( ) - Power OFF"
fi
gxmessage -center \
-buttons "_Cancel":1,"switch to _Integrated":101,"switch to _Discrete":102 \
-wrap \
-title "Choose Hybrid Graphic Card" \
"Choose Hybrid Graphic Card
=================
Integrated: $integrated_condition : $name_integrated
Discrete: $discrete_condition : $name_discrete"
whichCard=$?
case "$whichCard" in
1)
echo "Exit"
;;
101)
if [ "$integrated" == ":+:Pwr:" ] && [ "$discrete" == ": :Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_down.png" "switching to $name_integrated"
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
elif [ "$integrated" == ": :Pwr:" ] && [ "$discrete" == ":+:Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_down.png" "switching to $name_integrated"
echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
if [ "$DESKTOP_SESSION" = "openbox" ]
then
killall -u "$USER"
elif [ "$DESKTOP_SESSION" = "gnome" ]
then
gnome-session-save --logout
fi
elif [ "$integrated" == ": :Off:" ] && [ "$discrete" == ":+:Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_down.png" "switching to $name_integrated"
echo ON > /sys/kernel/debug/vgaswitcheroo/switch
echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch
if [ "$DESKTOP_SESSION" = "openbox" ]
then
killall -u "$USER"
elif [ "$DESKTOP_SESSION" = "gnome" ]
then
gnome-session-save --logout
fi
elif [ "$integrated" == ":+:Pwr:" ] && [ "$discrete" == ": :Off:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_down.png" "already switched to $name_integrated"
fi
;;
102)
if [ "$integrated" == ":+:Pwr:" ] && [ "$discrete" == ": :Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_up.png" "switching to $name_discrete"
echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch
if [ "$DESKTOP_SESSION" = "openbox" ]
then
killall -u "$USER"
elif [ "$DESKTOP_SESSION" = "gnome" ]
then
gnome-session-save --logout
fi
elif [ "$integrated" == ": :Pwr:" ] && [ "$discrete" == ":+:Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_up.png" "switching to $name_discrete"
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch
elif [ "$integrated" == ":+:Pwr:" ] && [ "$discrete" == ": :Off:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_up.png" "switching to $name_discrete"
echo ON > /sys/kernel/debug/vgaswitcheroo/switch
echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch
if [ "$DESKTOP_SESSION" = "openbox" ]
then
killall -u "$USER"
elif [ "$DESKTOP_SESSION" = "gnome" ]
then
gnome-session-save --logout
fi
elif [ "$integrated" == ": :Off:" ] && [ "$discrete" == ":+:Pwr:" ]
then
notify-send -t 5000 --icon="/home/$USER/.local/share/icons/hardware_up.png" "already switched to $name_discrete"
fi
;;
esac
tu le passe en executable
et voila ..... si tu veut plus de détail regarde ce site http://asusm51ta-with-linux.blogspot.com/
mais bon je vient de t' expliquer vraiment tres rapidement mais par contre ça marche pas sous ubuntu 11.04
Hors ligne
#11 Le 03/06/2011, à 12:28
- wanito
Re : vga switcheroo sur ubuntu 11.04
voila vu que que je n'est pas de solution pour faire fonctionner switcheroo sur ubuntu 11.04 , j'ai suivi cette methode pour pour gagner de l'autonomie http://www.plugngeek.net/ubuntu-1104-su … timeline-x , voila si quelqu'un touve une solution pour vga swicheroo n'esiter pas a poster!
Hors ligne