You are not logged in.

#1 2014-01-13 15:21:06

hippoheh
Member
Registered: 2014-01-12
Posts: 5

[SOLVED] acpi_call not really turn off amd gpu

Hi,there.I recently encountered an AMD gpu issue on my arch system(Dell 14R N4110).
      Before posting, I have tried instructions in https://bbs.archlinux.org/viewtopic.php?id=127210, and the result seems quite normal.
      And I switched to my Ubuntu13.04 system on the same matchine sine I have dual boot. It's clear that gpu do turned off on all aspects..discharge rate 10w,cpu temperature is quite normal and the powertop ubutnu after acpi_call executed
In contrast, powertop's output arch after acpi_call executed and the hot cpu..on archlinux  tells me that amd gpu was not turned off.
     Here is some output of my current archlinux system(Linux arch 3.12.7-1-ARCH #1 SMP PREEMPT Fri Jan 10 08:50:35 CET 2014 x86_64 GNU/Linux):

  1. output of acpi_call on archlinux when successfully excuted

    ╔═[22:03 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] sudo .acpi_call/examples/turn_on_gpu.sh 
    Trying \_SB.PCI0.PEG0.PEGP._ON: works!
    ╔═[22:03 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]
    ╔═[22:03 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] sudo .acpi_call/examples/turn_off_gpu.sh 
    Trying \_SB.PCI0.PEG0.PEGP._OFF: works!
    ╔═[22:03 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff)
    ╔═[22:03 Mon(13).Jan] hippo@arch [0:~]
  2. another output of acpi_call on archlinux  after a while :

    ╔═[22:05 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] (rev ff)
    ╔═[22:05 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] sudo .acpi_call/examples/turn_off_gpu.sh 
    Trying \_SB.PCI0.PEG0.PEGP._OFF: works!
    ╔═[22:05 Mon(13).Jan] hippo@arch [0:~]
    ╚═[$] lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    ╔═[22:05 Mon(13).Jan] hippo@arch [0:~]

  And I have blacklisted radeon on kernel boot,cat /etc/default/grub

1	# If you change this file, run 'update-grub' afterwards to update
     2	# /boot/grub/grub.cfg.
     3	# For full documentation of the options in this file, see:
     4	#   info -f grub -n 'Simple configuration'
     5	
     6	GRUB_DEFAULT="0"
     7	#GRUB_HIDDEN_TIMEOUT="0"
     8	GRUB_HIDDEN_TIMEOUT_QUIET="true"
     9	GRUB_TIMEOUT="1"
    10	GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Arch`"
    11	GRUB_CMDLINE_LINUX_DEFAULT="verbose libahci.ignore_sss=1 modprobe.blacklist=radeon  processor.nocst=1 "
    12	GRUB_CMDLINE_LINUX=""
    13	
    14	# Uncomment to enable BadRAM filtering, modify to suit your needs
    15	# This works with Linux (no patch required) and with any kernel that obtains
    16	# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    17	#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    18	
    19	GRUB_THEME="/boot/grub/themes/Archlinux/theme.txt"
    20	# fix broken grub.cfg gen
    21	GRUB_DISABLE_SUBMENU=y
    22	# Uncomment to disable graphical terminal (grub-pc only)
    23	#GRUB_TERMINAL="console"
    24	
    25	# The resolution used on graphical terminal
    26	# note that you can use only modes which your graphic card supports via VBE
    27	# you can see them in real GRUB with the command `vbeinfo'
    28	GRUB_GFXMODE="auto"
    29	
    30	# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    31	#GRUB_DISABLE_LINUX_UUID="true"
    32	
    33	# Uncomment to disable generation of recovery mode menu entries
    34	#GRUB_DISABLE_RECOVERY="true"
    35	
    36	# Uncomment to get a beep at grub start
    37	#GRUB_INIT_TUNE="480 440 1"
    38	
    39	#export GRUB_MENU_PICTURE="/boot/grub/themes/Archxion/background.png"
    40	# export GRUB_COLOR_NORMAL="dark-gray/black"
    41	# export GRUB_COLOR_HIGHLIGHT="brown/black"
    42	# GRUB_FONT="/boot/grub/unicode.pf2"

More may need here,
systemctl status  automates.service

automates.service - automates disabling discrete GPU
   Loaded: loaded (/usr/lib/systemd/system/automates.service; enabled)
   Active: inactive (dead) since Mon 2014-01-13 22:36:04 CST; 38min ago
  Process: 420 ExecStart=/bin/sh -c /usr/local/bin/acpi_call_GUI_systemd/deactivate.sh (code=exited, status=0/SUCCESS)
 Main PID: 420 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/automates.service

lsmod | grep acpi

 acpi_call               5224  0 

systemctl status agg_acpi_call.service

agg_acpi_call.service - Check if there had been kernel updates, if true recompiles acpi_call kernel module
   Loaded: loaded (/usr/lib/systemd/system/agg_acpi_call.service; enabled)
   Active: inactive (dead) since Mon 2014-01-13 22:36:03 CST; 35min ago
  Process: 401 ExecStart=/bin/sh -c /usr/local/bin/acpi_call_GUI_systemd/agg_acpi_call.sh (code=exited, status=0/SUCCESS)
 Main PID: 401 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/agg_acpi_call.service

And what about this :dmesg | grep acpi

[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x00] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x00] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x00] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x00] disabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
[    0.137944] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.210454] acpi PNP0A08:00: ACPI _OSC support notification failed, disabling PCIe ASPM
[    0.210456] acpi PNP0A08:00: Unable to request _OSC control (_OSC support mask: 0x08)
[    0.239393] Found 1 acpi root devices
[    9.236322] ACPI: Requesting acpi_cpufreq
[   10.226614] acpi device:28: registered as cooling_device5
[   10.228414] acpi device:30: registered as cooling_device6

Also I have tried to remove some parameters from kernel line, and changed /etc/default/grub  GRUB_CMDLINE_LINUX_DEFAULT value to GRUB_CMDLINE_LINUX_DEFAULT="verbose modprobe.blacklist=radeon", nothing happened..
Seems odd ,huh?  mad 
Please, help me out.
Any suggetion is appreciate,thanks!
& Sorry about my poor english here.

Last edited by hippoheh (2014-01-15 15:23:14)

Offline

#2 2014-01-15 15:09:52

hippoheh
Member
Registered: 2014-01-12
Posts: 5

Re: [SOLVED] acpi_call not really turn off amd gpu

ok, some tips here. Downgrading kernel to 3.12.1  helps. It's related to acpi_call issues from github . Not resolved  since 3.12 kernel releases due to no updating ...
acpi_call issues since kernel 3.12]

Last edited by hippoheh (2014-01-15 15:20:00)

Offline

Board footer

Powered by FluxBB