HiroIshida / snippets

fraction of codes which may be grepped later
6 stars 3 forks source link

AMDのPC, ubuntu20.04だと blightnessが変更できない問題 #71

Open HiroIshida opened 3 days ago

HiroIshida commented 3 days ago

=> 結論: radeon pro driverをいれる.

眼が痛い。 check graphic card

h-ishida@umejuice:~$ sudo dmesg | grep -i radeon
[sudo] password for h-ishida: 
[    0.228977] smpboot: CPU0: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (family: 0x19, model: 0x74, stepping: 0x1)

やったけど意味ない https://www.reddit.com/r/linuxquestions/comments/1cf7vu1/the_solution_to_brightness_issue_for_amd_apu/

2つ候補でないacpi_video0だけ. biosでの設定が必要か? https://gist.github.com/x1unix/67c154d42aa5c8333f43a69acceff635

この変のparameterをいじる. acpi_backlight? https://www.kernel.org/doc/Documentation/admin-guide/kernel-parameters.txt before

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

after うーん何もかわらん. acpi_backlightの値も変えたし, cmdline_linuxの値も追加した. けど意味ない

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=video"
GRUB_CMDLINE_LINUX="acpi_osi=Linux"
HiroIshida commented 3 days ago

kernelのバージョンを上げる https://github.com/bkw777/mainline を使う. boxを押してもinstallがonにならないが, 選択解除するとinstlalationがclickableになって押したら前に選択したカーネルがインストールされはじめた

6.1, 6.6を試したが意味なし. 6.8~はそもそも起動しない

HiroIshida commented 3 days ago

https://askubuntu.com/a/189308/917108 これを試す 意味ない. intelしかつかえない. もう一つのbrightnessctlもハードウェアレベルでの操作じゃないから意味ない

HiroIshida commented 3 days ago

https://unix.stackexchange.com/a/725454 流石にカーネルにもとから入っているか

HiroIshida commented 3 days ago

https://askubuntu.com/questions/1267482/brightness-control-amd-ubuntu-20-04

HiroIshida commented 3 days ago

amd のpro driverをいれると治るという報告. いれてみる. Yをおす https://www.amd.com/en/support/download/linux-drivers.html https://repo.radeon.com/amdgpu-install/6.1.3/ubuntu/focal/amdgpu-install_6.1.60103-1_all.deb

h-ishida@umejuice:~/Downloads$ sudo dpkg -i amdgpu-install_6.1.60103-1_all.deb
(Reading database ... 569147 files and directories currently installed.)
Preparing to unpack amdgpu-install_6.1.60103-1_all.deb ...
Unpacking amdgpu-install (6.1.60103-1787201.20.04) over (6.1.60103-1787201.20.04) ...
Setting up amdgpu-install (6.1.60103-1787201.20.04) ...

Configuration file '/etc/apt/sources.list.d/amdgpu.list'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** amdgpu.list (Y/I/N/O/D/Z) [default=N] ? D
--- /etc/apt/sources.list.d/amdgpu.list 2024-10-28 07:20:43.014833823 +0900
+++ /etc/apt/sources.list.d/amdgpu.list.dpkg-new        2024-06-07 22:19:25.000000000 +0900
@@ -1,2 +1,2 @@
-deb https://repo.radeon.com/amdgpu/6.2.3/ubuntu jammy main
-# deb-src https://repo.radeon.com/amdgpu/6.2.3/ubuntu jammy main
+deb https://repo.radeon.com/amdgpu/6.1.3/ubuntu focal main
+#deb-src https://repo.radeon.com/amdgpu/6.1.3/ubuntu focal main

Configuration file '/etc/apt/sources.list.d/amdgpu.list'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** amdgpu.list (Y/I/N/O/D/Z) [default=N] ? 

apt update して

amdgpu-install --usecase=graphics

する なおった