How to use VGASWITCHEROO with liqourix kernels?
sekou
Status: New User - Welcome
Joined: 07 Mar 2011
Posts: 4
Reply Quote
Hello, I'm currently running Debian Wheezy with 2.6.37 Liquorix kernel with ATI/Intel switchable graphics enabled in BIOS. However I din't have the folder "/sys/kernel/debug/vgaswitcheroo/". So I followed the guide from
asusm51ta-with-linux.blogspot.com/
and I've mounted "none" partition in fstab:
:: Code ::
none                    /sys/kernel/debug debugfs defaults 0 0

So, right now the folder /sys/kernel/debug does exist, but still there isn't a folder named vgaswitcheroo in there.
The command:
:: Code ::
grep -i switcheroo /boot/config-2.6.*

shows this output
:: Code ::
/boot/config-2.6.36-3.dmz.2-liquorix-amd64:CONFIG_VGA_SWITCHEROO=y
/boot/config-2.6.37-1.dmz.1-liquorix-amd64:CONFIG_VGA_SWITCHEROO=y
/boot/config-2.6.37-1.dmz.2-liquorix-amd64:CONFIG_VGA_SWITCHEROO=y
/boot/config-2.6.37-2-amd64:CONFIG_VGA_SWITCHEROO=y
/boot/config-2.6.37-2.dmz.1-liquorix-amd64:CONFIG_VGA_SWITCHEROO=y
/boot/config-2.6.37-2.dmz.2-liquorix-amd64:CONFIG_VGA_SWITCHEROO=y

On the other site https://help.ubuntu.com/community/HybridGraphics I've found the information that "The vga_switcheroo mechanism will only be active when the kernel is booted with either the "modeset=1" kernel option, and/or the "nomodeset" option being absent." But how to enable it?
Thanks

UPDATE:
I added the option modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT in the file /etc/default/grub. Then I reinstalled the kernel to rebuild initram and grub configuration. Unfortunately without effects:(
Back to top
damentz
Status: Assistant
Joined: 09 Sep 2008
Posts: 1135
Reply Quote
Can you provide inxi -F and tell me if you're already using kernel mode setting?
Back to top
sekou
Status: New User - Welcome
Joined: 07 Mar 2011
Posts: 4
Reply Quote
Sorry, but I don't have the command "inxi" on my system. I can only say that grub configuration is already updated with modeset=1 for all kernel versions and initrd was rebuilded.
Back to top
GoinEasy9
Status: Contributor
Joined: 28 Jun 2008
Posts: 84
Location: Manorville, New York
Reply Quote
log in as root in terminal, then do:
cd /usr/local/bin
wget -Nc smxi.org/inxi
chmod +x inxi
chown <username> inxi

I know it by heart, it goes on every box I build.
Back to top
sekou
Status: New User - Welcome
Joined: 07 Mar 2011
Posts: 4
Reply Quote
Ok, I've installed it and this is the output:
:: Code ::

System:    Host hostname Kernel 2.6.37-2.dmz.2-liquorix-amd64 x86_64 (64 bit) Distro Debian GNU/Linux wheezy/sid
CPU:       Dual core Intel Core i5 M 460 (-HT-MCP-) cache 3072 KB flags (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips 10107.4
           Clock Speeds: (1) 1199.00 MHz (2) 1199.00 MHz (3) 1199.00 MHz (4) 1199.00 MHz
Graphics:  Card-1 Intel Core Processor Integrated Graphics Controller Card-2 ATI Madison [Mobility Radeon HD 5000 Series] X.Org 1.9.4.901 Res: 1600x900@60.0hz
           GLX Renderer Mesa DRI Intel Ironlake Mobile GEM 20100330 DEVELOPMENT  GLX Version 2.1 Mesa 7.10 Direct Rendering Yes
Audio:     Card-1 Intel 5 Series/3400 Series Chipset High Definition Audio driver HDA Intel BusID: 00:1b.0
           Card-2 ATI Redwood HDMI Audio [Radeon HD 5600 Series] driver HDA Intel BusID: 01:00.1
           Sound: Advanced Linux Sound Architecture Version 1.0.23
Network:   Card-1 Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller driver r8169 v: 2.3LK-NAPI at port 8000 BusID: 08:00.0
           Card-2 Intel Centrino Wireless-N 1000 driver iwlagn v: in-tree: BusID: 07:00.0
Disks:     HDD Total Size: 1000.2GB (46.1% used) 1: /dev/sda Hitachi_HTS54505 500.1GB
           2: /dev/sdb WDC_WD5000BEVT 500.1GB
Partition: ID:/ size: 88G used: 82G (98%) fs: ext4 ID:/boot size: 938M used: 131M (15%) fs: ext4
           ID:swap-1 size: 4.00GB used: 0.00GB (0%) fs: swap
Sensors:   System Temperatures: cpu: 54.0C mobo: 47.0C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes 176 Uptime 2 min Memory 344.0/3757.3MB Runlevel 2 Client Shell inxi 1.4.23

I have also upgraded to sid to check stock kernel but without succes.
Back to top
sekou
Status: New User - Welcome
Joined: 07 Mar 2011
Posts: 4
Reply Quote
OK, I've found the problem: I had the radeon driver blacklisted. So I've got vgaswitcheroo in /sys/kernel/debug right now and it turns off radeon automatically during start up.
However only on the sid kernel (I have a black screen when I use liquorix 2.6.37).
Switching cards doesn't' work right now with the script provided (probably it was created for GNOME and I use KDE) but most importantly my laptop is silent!!!
Thank you for your help!
Regards
Back to top
Display posts from previous:   

All times are GMT - 8 Hours