You are not logged in.
Pages: 1
Hello
I just installed for the first time Archlinux, i was under Ubuntu and Debian before.
My laptop has Hybrid graphics :
[root@Renote gaetan]# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
With Ubuntu, i was using Vga_switcheroo and it was working well. But here, i'm asked to add "modprobe radeon" to /etc/profile.d/radeon.sh.
Or, the file /etc/profile.d/radeon.sh doesn't exist.
That's strange because I think everything is well installed.
[root@Renote gaetan]# pacman -Q | grep -E "xf86-video-ati|xf86-video-intel"
xf86-video-ati 1:7.1.0-3
xf86-video-intel 2.21.9-1
Does anyone have any idea what should I do?
Thanks
Last edited by Noudoudoulidou (2013-07-06 12:15:52)
Offline
You can create a rc.local file associated with a systemd script and then you can modprobe it automatically on boot.
Why don't you just use an acpi_call command if you are not using the Card. It is more boot-time consuming but for sure grants more battery power and also less temperature.
Here is my script. Search for wiki how to place and enable it. It loads as a service to run the command in rc.local:
[Unit]
Description=/etc/rc.local Compatibility
[Service]
Type=oneshot
ExecStart=/etc/rc.local
RemainAfterExit=yes
SysVStartPriority=99
[Install]
WantedBy=multi-user.target
Last edited by Gulver (2013-06-25 19:35:23)
Offline
switcheroo is available in aur with that ATi card is switched off in my laptop.
Offline
Hi,
I have a Sony Vaio with the Intel HD3000/AMD HD 6470M combo. In order to shut down the discrete card, I've done the following:
1. I use the open source drivers only, this way I can use vgaswitcheroo
2. I don't blacklist or remove the radeon module on boot for the reason stated above
3. I use a custom systemd script to disable the card on boot:
/etc/systemd/system/disable-radeon.service
[Unit]
Description=Service to disable the radeon discrete card
After=syslog.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo OFF > /sys/kernel/debug/vgaswitcheroo/switch'
RemainAfterExit=yes
[Install]
WantedBy=graphical.target
I hope this helps.
Offline
Thanks for the reply!
Sorry for the long time since I posted the topic and now, but I had to reinstall Archlinux because of a serious issue with a low memory error.
I'll try your solutions and say what it does
Offline
I tried your solutions, and my laptop is still overheating.
All I want is disabled the ATI card and always use my Intel HD4000 chipset. But every time, it seems that my modifications doesn't make anything.
That's strange.
Offline
I tried your solutions, and my laptop is still overheating.
All I want is disabled the ATI card and always use my Intel HD4000 chipset. But every time, it seems that my modifications doesn't make anything.
That's strange.
That is certainly weird, if you have a muxed graphics platform my solution above should work. If the discrete card is indeed disabled, you should see something like this:
dmesg |grep -i radeon
Ouput (simplified):
...
[ 3.845551] radeon: switched off
...
What is the output of:
systemctl status disable-radeon.service
What kind of laptop are you using?
Last edited by LordChaos73 (2013-07-05 13:01:10)
Offline
I have these outputs
[gaetan@Renote ~]$ dmesg |grep -i radeon
[ 8.081318] [drm] radeon kernel modesetting enabled.
[ 8.726904] radeon 0000:01:00.0: enabling device (0000 -> 0003)
[ 9.279100] radeon 0000:01:00.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
[ 9.279103] radeon 0000:01:00.0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
[ 9.279328] [drm] radeon: 512M of VRAM memory ready
[ 9.279331] [drm] radeon: 512M of GTT memory ready.
[ 9.446340] radeon 0000:01:00.0: WB enabled
[ 9.446346] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0xffff88015011fc00
[ 9.446349] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0xffff88015011fc0c
[ 9.446415] radeon 0000:01:00.0: irq 47 for MSI/MSI-X
[ 9.446432] radeon 0000:01:00.0: radeon: using MSI.
[ 9.446473] [drm] radeon: irq initialized.
[ 9.521525] [drm] radeon atom DIG backlight initialized
[ 9.521531] [drm] Radeon Display Connectors
[ 9.535169] [drm] radeon: power management initialized
[ 9.611315] radeon 0000:01:00.0: fb1: radeondrmfb frame buffer device
[ 9.611591] [drm] Initialized radeon 2.30.0 20080528 for 0000:01:00.0 on minor 1
[ 62.028536] Modules linked in: arc4 brcmsmac cordic brcmutil mac80211 joydev intel_powerclamp coretemp cfg80211 kvm_intel hp_wmi sparse_keymap btusb bluetooth r8169 kvm uvcvideo radeon iTCO_wdt videobuf2_vmalloc videobuf2_memops iTCO_vendor_support videobuf2_core videodev media ttm evdev psmouse i915 mii drm_kms_helper drm bcma rfkill snd_hda_codec_hdmi crc32c_intel acpi_cpufreq serio_raw snd_hda_codec_idt mperf microcode hp_accel battery thermal snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd wmi i2c_i801 i2c_algo_bit lis3lv02d intel_agp video i2c_core intel_gtt input_polldev lpc_ich soundcore mei ac intel_ips button processor ext4 crc16 mbcache jbd2 sr_mod cdrom sd_mod ahci libahci ehci_pci libata ehci_hcd scsi_mod usbcore usb_common
[gaetan@Renote ~]$ systemctl status disable-radeon.service
disable-radeon.service - Service to disable the radeon discrete card
Loaded: loaded (/etc/systemd/system/disable-radeon.service; disabled)
Active: inactive (dead)
I'm using a HP Pavilion dv6-3172sf
I can only find the technical informations in french.
Processeur Intel Core i5-460M
Fréquence CPU 2,93 GHz
Nom courant du chipset Mobile Intel HM55 Express
Taille de la mémoire 4 Go
Type de mémoire DDR3
Nombre de barrettes 2
Taille de mémoire Max 8 Go
Type d'écran LED
Taille de l'écran 15,6 pouces
Résolution Max 1366 x 768 pixels
Format de l'écran 16/9
Ecran large oui
Dalle brillante oui
Chipset graphique ATI Mobility Radeon HD 5470
Taille mémoire vidéo 512 Mo
Disque dur 640 Go
Capacité 640 Go
Type de Disque HDD (Hard Disk Drive)
Vitesse de rotation 5400 RPM
Interface du disque dur Serial ATA
Type de graveur Graveur DVD Super Multi double couche lightscribe
Lecteur Optique Graveur CD, Graveur DVD, Lecteur CD, Lecteur DVD
Graveur DVD oui
Lecteur de cartes xD-Picture Card, Memory Stick, Memory Stick PRO, Multimedia Card, SD (Secure Digital)
Lecteur de disquettes non
Norme(s) réseau sans-fil Wi-Fi B (IEEE 802.11b), Wi-Fi G (IEEE 802.11g), Wi-Fi N 150 Mbps (IEEE 802.11n)
Norme(s) réseau 10/100 Mbps, 10/100/1000 Mbps
Contrôleur réseau intégré oui
Technologie Bluetooth Bluetooth
Modem Intégré non
Sans-fil oui
Webcam oui
Microphone intégré oui
Type de H.P Intégrés
Type de Tuner Aucun
Tuner FM non
Type d'activités Bureautique, Internet, Multimédia
Norme du clavier AZERTY
Localisation Français
Pavé numérique non
Touches Multimédia non
Lecteur biométrique oui
Télécommande non
Connecteur(s) disponible(s) 1x Casque (Jack 3.5mm Femelle), 1x Micro (Jack 3.5mm Femelle), 1x eSATA, 1x RJ45, 4x USB 2.0, 1x HDMI Femelle, 1x VGA (D-sub 15 Femelle)
Port(s) d'extension(s) Aucun
Couleur Argent
Profondeur 245 mm
Largeur 378 mm
Epaisseur Avant 30,8 mm
Epaisseur Arrière 36 mm
Poids 2,5 kg
Gamme Pavilion dv6
Nombre de cellules 6
Offline
Pas de problème, par hasard je suis né en France...
Anyway, you still need to activate the service:
systemctl enable disable-radeon.service
Reboot afterwards, and run the
systemctl status disable-radeon.service
command again.
Offline
Je suis de belgique
We are going to continue this discussion in english by respect for other people following this post
Ok I'll try this and say what it gives
Offline
It seems it worked
[gaetan@Renote ~]$ systemctl status disable-radeon.service
disable-radeon.service - Service to disable the radeon discrete card
Loaded: loaded (/etc/systemd/system/disable-radeon.service; enabled)
Active: active (exited) since Fri 2013-07-05 18:16:10 CEST; 4min 15s ago
Process: 235 ExecStart=/bin/bash -c echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (code=exited, status=0/SUCCESS)
[gaetan@Renote ~]$ dmesg |grep -i radeon
[ 7.872269] [drm] radeon kernel modesetting enabled.
[ 7.872326] radeon 0000:01:00.0: enabling device (0000 -> 0003)
[ 8.637866] radeon 0000:01:00.0: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
[ 8.637871] radeon 0000:01:00.0: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
[ 8.638094] [drm] radeon: 512M of VRAM memory ready
[ 8.638097] [drm] radeon: 512M of GTT memory ready.
[ 8.671059] radeon 0000:01:00.0: WB enabled
[ 8.671066] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0xffff88014db5cc00
[ 8.671071] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0xffff88014db5cc0c
[ 8.671148] radeon 0000:01:00.0: irq 47 for MSI/MSI-X
[ 8.671177] radeon 0000:01:00.0: radeon: using MSI.
[ 8.671223] [drm] radeon: irq initialized.
[ 8.741878] [drm] radeon atom DIG backlight initialized
[ 8.741884] [drm] Radeon Display Connectors
[ 8.755463] [drm] radeon: power management initialized
[ 8.830948] radeon 0000:01:00.0: fb1: radeondrmfb frame buffer device
[ 8.831076] [drm] Initialized radeon 2.30.0 20080528 for 0000:01:00.0 on minor 1
[ 10.301139] radeon: switched off
[ 10.391161] radeon 0000:01:00.0: power state changed by ACPI to D3hot
[ 62.028447] Modules linked in: arc4 brcmsmac cordic brcmutil mac80211 uvcvideo joydev hp_wmi sparse_keymap radeon videobuf2_vmalloc videobuf2_memops videobuf2_core videodev media cfg80211 btusb bluetooth rfkill evdev r8169 iTCO_wdt iTCO_vendor_support intel_powerclamp coretemp kvm_intel kvm crc32c_intel ttm psmouse bcma acpi_cpufreq serio_raw mperf microcode snd_hda_codec_hdmi mii hp_accel lis3lv02d wmi battery thermal i915 input_polldev video drm_kms_helper drm snd_hda_codec_idt i2c_algo_bit mei i2c_i801 i2c_core intel_agp ac intel_ips snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd intel_gtt lpc_ich soundcore button processor ext4 crc16 mbcache jbd2 sr_mod sd_mod cdrom ahci libahci libata scsi_mod ehci_pci ehci_hcd usbcore usb_common
Thank you
Hope this will reduce the overheating of my laptop.
Offline
It seems it worked
Thank you
Hope this will reduce the overheating of my laptop.
You're very welcome.
To keep an eye on the temperatures of the cores, install lm_sensors:
sudo pacman -S lm_sensors
With the
sensors
command, you should get output like this:
[ericd@vaiopro13 Downloads]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +49.0°C (crit = +97.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +51.0°C (high = +86.0°C, crit = +100.0°C)
Core 0: +48.0°C (high = +86.0°C, crit = +100.0°C)
Core 1: +52.0°C (high = +86.0°C, crit = +100.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: -128.0°C
[ericd@vaiopro13 Downloads]$
You can also use the following tools to monitor your machine more closely: powertop, i7z
If your laptop stays cool the next few hours, please mark the topic as solved.
Offline
Yes, it seems it's good. I've got this
[gaetan@Renote ~]$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +48.0 C
coretemp-isa-0000
Adapter: ISA adapter
Core 0: +44.0 C (high = +95.0 C, crit = +105.0 C)
Core 2: +43.0 C (high = +95.0 C, crit = +105.0 C)
radeon-pci-0100
Adapter: PCI adapter
temp1: -128.0 C
Thanks again, I mark it as solved.
Offline
Hi, have a problem, i would create new thread, but i am using your systemd script.
The thing is, when script runs on start it failes:
$ systemctl status disable-radeon.service
disable-radeon.service - Service to disable the radeon discrete card
Loaded: loaded (/etc/systemd/system/disable-radeon.service; enabled)
Active: failed (Result: exit-code) since Uto 2013-09-17 23:33:14 CEST; 1min 10s ago
Process: 178 ExecStart=/bin/bash -c echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (code=exited, status=1/FAILURE)
but if i do this after boot:
$ sudo systemctl start disable-radeon.service
it works:
$ systemctl status disable-radeon.service
disable-radeon.service - Service to disable the radeon discrete card
Loaded: loaded (/etc/systemd/system/disable-radeon.service; enabled)
Active: active (exited) since Uto 2013-09-17 23:35:54 CEST; 11s ago
Process: 791 ExecStart=/bin/bash -c echo OFF > /sys/kernel/debug/vgaswitcheroo/switch (code=exited, status=0/SUCCESS)
Edit:
Never mind this, if i just installed systemd-vgaswitcheroo-units from aur
Last edited by ivokosir (2013-09-17 23:55:10)
Offline
I use tmpfiles.d for disabling discrete graphics during boot. It is important to add the required modules (in my case i915 and radeon) to the /etc/mkinitcpio.conf MODULES section so that vgaswitcheroo will work as desired using the /etc/tmpfiles.d directory. There, I created a file radeon-off.conf containing
w /sys/kernel/debug/vgaswitcheroo/switch - - - - OFF
This works fine for me and is a quite easy solution without having to install stuff. This will only work using systemd, but I think most people do nowadays.
Hope this helps
Offline
Pages: 1