我有Ubuntu 17.10安装在微星GT72VR笔记本电脑NVIDIA GT1060显卡,grub2 作为启动项统一作为桌面。我无法以任何方式更改亮度。 亮度始终为 100%。我尝试了以下选项,但没有效果。
未奏效的事情[2018 年 4 月 30 日更新产出]
- Fn+Bright Up或Bright Down按钮在屏幕上显示内联图标,但亮度无法改变。
- 顶部栏的亮度滑块不起作用。
- GRUB_CMDLINE_LINUX_DEFAULT="安静 splashacpi_backlight=供应商"
- GRUB_CMDLINE_LINUX_DEFAULT="安静 splashacpi_backlight=native"
- GRUB_CMDLINE_LINUX_DEFAULT="安静 splashacpi_backlight=video"
- GRUB_CMDLINE_LINUX_DEFAULT="安静 splashacpi_backlight=none"
- 实用程序 xbacklight 显示“没有输出具有背光属性”
- 使用软件更新中的 nouveau X.Org 显示驱动程序
- NVIDIA 二进制驱动程序版本 396
- NVIDIA 二进制驱动程序版本 390
- 更改 /sys/class/backlight/acpi_video0/ 上的文件亮度,但不起作用
- 使用最新内核上游主线版本 v4.15.7(2 月 28 日)
- 实时 USB Ubuntu
- 使用 /etc/X11/xorg.conf 上包含“设备”部分的文件...
- 将会话记录为“Ubuntu on XOrg”并禁用 Wayland
这是输出journalctl -b | grep -i nvidia(感谢@WinEunuuchs2Unix)
mar 06 17:37:57 portatil kernel: nvidia: loading out-of-tree module taints kernel.
mar 06 17:37:57 portatil kernel: nvidia: module license 'NVIDIA' taints kernel.
mar 06 17:37:57 portatil kernel: nvidia: module verification failed: signature and/or required key missing - tainting kernel
mar 06 17:37:57 portatil kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 244
mar 06 17:37:57 portatil kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
mar 06 17:37:57 portatil kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module 390.25 Wed Jan 24 20:02:43 PST 2018 (using threaded interrupts)
mar 06 17:37:57 portatil kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 390.25 Wed Jan 24 19:29:37 PST 2018
mar 06 17:37:57 portatil kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
mar 06 17:37:57 portatil kernel: [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0
mar 06 17:37:57 portatil kernel: nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 242
mar 06 17:37:59 portatil kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
mar 06 17:37:59 portatil kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
mar 06 17:37:59 portatil systemd[1]: Starting NVIDIA Persistence Daemon...
mar 06 17:37:59 portatil nvidia-persistenced[896]: Verbose syslog connection opened
mar 06 17:37:59 portatil nvidia-persistenced[896]: Now running with user ID 122 and group ID 129
mar 06 17:37:59 portatil nvidia-persistenced[896]: Started (896)
mar 06 17:37:59 portatil nvidia-persistenced[896]: device 0000:01:00.0 - registered
mar 06 17:37:59 portatil systemd[1]: Started NVIDIA Persistence Daemon.
mar 06 17:37:59 portatil nvidia-persistenced[896]: Local RPC service initialized
mar 06 17:37:59 portatil nvidia-persistenced[896]: Received signal 15
mar 06 17:37:59 portatil systemd[1]: Stopping NVIDIA Persistence Daemon...
mar 06 17:37:59 portatil nvidia-persistenced[896]: Socket closed.
mar 06 17:37:59 portatil nvidia-persistenced[896]: PID file unlocked.
mar 06 17:37:59 portatil nvidia-persistenced[896]: PID file closed.
mar 06 17:37:59 portatil nvidia-persistenced[896]: The daemon no longer has permission to remove its runtime data directory /var/run/nvidia-persistenced
mar 06 17:37:59 portatil nvidia-persistenced[896]: Shutdown (896)
mar 06 17:37:59 portatil systemd[1]: Stopped NVIDIA Persistence Daemon.
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) Module glx: vendor="NVIDIA Corporation"
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA GLX Module 390.25 Wed Jan 24 19:23:51 PST 2018
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) LoadModule: "nvidia"
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) Module nvidia: vendor="NVIDIA Corporation"
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA dlloader X Driver 390.25 Wed Jan 24 18:57:05 PST 2018
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): Creating default Display subsection in Screen section
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): RGB weight 888
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Default visual is TrueColor
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (**) NVIDIA(0): Option "RegistryDwords" "EnableBrightnessControl=1"
mar 06 17:37:59 portatil /usr/lib/gdm3/gdm-x-session[1026]: (**) NVIDIA(0): Enabling 2D acceleration
mar 06 17:37:59 portatil systemd[1]: Starting NVIDIA Persistence Daemon...
mar 06 17:37:59 portatil nvidia-persistenced[1036]: Verbose syslog connection opened
mar 06 17:37:59 portatil systemd[1]: Started NVIDIA Persistence Daemon.
mar 06 17:37:59 portatil nvidia-persistenced[1036]: Now running with user ID 122 and group ID 129
mar 06 17:37:59 portatil nvidia-persistenced[1036]: Started (1036)
mar 06 17:38:00 portatil nvidia-persistenced[1036]: device 0000:01:00.0 - registered
mar 06 17:38:00 portatil nvidia-persistenced[1036]: Local RPC service initialized
mar 06 17:38:00 portatil kernel: nvidia-modeset: Allocated GPU:0 (GPU-3d37c8bb-5a07-7825-b4bc-3a57452f2b5a) @ PCI:0000:01:00.0
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-0
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-1 (boot)
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-2
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-3
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-4
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DFP-5
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): NVIDIA GPU GeForce GTX 1060 (GP106-B) at PCI:1:0:0 (GPU-0)
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): Memory: 6291456 kBytes
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): VideoBIOS: 86.06.1f.00.05
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): Detected PCI Express Link width: 16X
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: disconnected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): connected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): Internal DisplayPort
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): 960.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: disconnected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: disconnected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: disconnected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: disconnected
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): will be used as the requested mode.
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0):
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): Validated MetaModes:
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): "DFP-1:nvidia-auto-select"
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): DPI set to (128, 130); computed from "UseEdidDpi" X config
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(0): option
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA: Using 24576.00 MB of virtual memory for indirect memory
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA: access.
mar 06 17:38:00 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): Setting mode "DFP-1:nvidia-auto-select"
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Disabling shared memory pixmaps
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Backing store enabled
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): Silken mouse enabled
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (==) NVIDIA(0): DPMS enabled
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): [DRI2] Setup complete
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=3 (/dev/input/event15)
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (II) config/udev: Adding input device HDA NVidia HDMI/DP,pcm=7 (/dev/input/event16)
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): connected
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): Internal DisplayPort
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): 960.0 MHz maximum pixel clock
mar 06 17:38:01 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: disconnected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): connected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): Internal DisplayPort
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): 960.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: disconnected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: disconnected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: disconnected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: disconnected
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
mar 06 17:38:02 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: disconnected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: Internal TMDS
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-0: 165.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): connected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): Internal DisplayPort
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): CMN (DFP-1): 960.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: disconnected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-2: 960.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: disconnected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: disconnected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-4: 960.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: disconnected
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: Internal TMDS
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0): DFP-5: 165.0 MHz maximum pixel clock
mar 06 17:38:05 portatil /usr/lib/gdm3/gdm-x-session[1026]: (--) NVIDIA(GPU-0):
mar 06 17:38:15 portatil kernel: Modules linked in: ccm rfcomm arc4 bnep nls_iso8859_1 snd_hda_codec_hdmi msi_wmi sparse_keymap intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel aes_x86_64 crypto_simd glue_helper cryptd intel_cstate intel_rapl_perf ath10k_pci ath10k_core snd_hda_codec_realtek ath snd_hda_codec_generic mac80211 serio_raw cfg80211 snd_hda_intel snd_hda_codec snd_seq_midi snd_hda_core snd_seq_midi_event snd_hwdep snd_rawmidi snd_pcm snd_seq input_leds joydev snd_seq_device snd_timer snd hci_uart btusb btrtl soundcore btbcm serdev btqca btintel bluetooth mei_me mei shpchp intel_pch_thermal ecdh_generic tpm_crb acpi_als intel_lpss_acpi wmi intel_lpss mac_hid kfifo_buf industrialio acpi_pad nvidia_uvm(POE) parport_pc
mar 06 17:38:15 portatil kernel: ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid nvidia_drm(POE) nvidia_modeset(POE) drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm nvidia(POE) ahci ipmi_devintf alx sdhci_pci psmouse sdhci mdio libahci ipmi_msghandler video pinctrl_sunrisepoint i2c_hid pinctrl_intel hid
mar 08 20:28:03 portatil gnome-software[1468]: running get-installed with refine-flags=require-license,require-description,require-size,require-rating,require-version,require-history,require-setup-action,require-origin,require-provenance,require-icon,require-permissions,require-origin-hostname,require-runtime with failure-flags=use-events with timeout=60 on plugin=snap on apps user/*/*/shell-extension/ubuntu-appindicators_ubuntu.com/*,user/*/*/shell-extension/ubuntu-dock_ubuntu.com/*,system/package/ubuntu-artful-universe/desktop/chromium-browser.desktop/*,system/package/ubuntu-artful-universe/desktop/pgadmin3.desktop/*,system/package/ubuntu-artful-main/desktop/vim.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.DejaDup.desktop/*,system/package/ubuntu-artful-main/desktop/software-properties-gnome.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-math.desktop/*,system/package/ubuntu-artful-main/desktop/gnome-session-properties.desktop/*,system/package/ubuntu-artful-main/desktop/vino-preferences.desktop/*,system/package/ubuntu-artful-main/desktop/transmission-gtk.desktop/*,system/package/ubuntu-artful-main/desktop/system-config-printer.desktop/*,system/package/ubuntu-artful-main/desktop/display-im6.q16.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.Nautilus.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.font-viewer.desktop/*,system/package/ubuntu-artful-main/desktop/rhythmbox.desktop/*,system/package/ubuntu-artful-main/desktop/gnome-user-share-properties.desktop/*,system/package/ubuntu-artful-main/desktop/update-manager.desktop/*,system/package/ubuntu-artful-main/desktop/evince.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.baobab.desktop/*,system/package/ubuntu-artful-main/desktop/remmina.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-calc.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-startcenter.desktop/*,system/package/ubuntu-artful-main/desktop/shotwell.desktop/*,system/package/ubuntu-artful-main/inputmethod/table.xml/*,system/package/ubuntu-artful-main/desktop/org.gnome.Screenshot.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-impress.desktop/*,system/package/ubuntu-artful-main/desktop/seahorse.desktop/*,system/package/ubuntu-artful-main/desktop/eog.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.FileRoller/*,system/package/ubuntu-artful-main/desktop/org.gnome.DiskUtility.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.Calendar.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.gedit.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-draw.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.Software.desktop/*,system/package/ubuntu-artful-main/desktop/nvidia-settings.desktop/*,system/package/ubuntu-artful-main/desktop/usb-creator-gtk.desktop/*,system/package/ubuntu-artful-main/desktop/ibus-setup.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.Logs.desktop/*,system/package/ubuntu-artful-main/desktop/libreoffice-writer.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.PowerStats.desktop/*,system/package/ubuntu-artful-main/desktop/org.gnome.Totem.desktop/*,system/snap/Tienda de snaps/desktop/intellij-idea-ultimate/*,system/snap/Tienda de snaps/desktop/vlc/*,system/snap/Tienda de snaps/runtime/core/* took 8350ms
这是ll /sys/class/backlight
total 0
drwxr-xr-x 2 root root 0 mar 8 20:32 ./
drwxr-xr-x 67 root root 0 mar 6 17:37 ../
lrwxrwxrwx 1 root root 0 mar 6 17:37 acpi_video0 -> ../../devices/pci0000:00/0000:00:01.0/0000:01:00.0/backlight/acpi_video0/
这是消息 | grep -i vga
[ 0.181221] pci 0000:01:00.0: vgaarb: setting as boot VGA device
[ 0.181221] pci 0000:01:00.0: vgaarb: VGA device added: decodes=io+mem,owns=io+mem,locks=none
[ 0.181221] pci 0000:01:00.0: vgaarb: bridge control possible
[ 0.181221] vgaarb: loaded
[ 0.989512] fb0: EFI VGA frame buffer device
[ 1.340831] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 3.073586] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
这是linux - linux系统grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GP106M [GeForce GTX 1060 Mobile] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Micro-Star International Co., Ltd. [MSI] GP106M [GeForce GTX 1060 Mobile]
Flags: bus master, fast devsel, latency 0, IRQ 131
Memory at de000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=32M]
I/O ports at e000 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
这是uname -a
Linux portatil 4.13.0-36-generic #40-Ubuntu SMP Fri Feb 16 20:07:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
这是xrandr——详细
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (0x68) normal (normal left inverted right x axis y axis) 381mm x 214mm
Identifier: 0x63
Timestamp: 531186
Subpixel: unknown
Gamma: 1.0:1.0:1.0
Brightness: 0.45
Clones:
CRTC: 0
CRTCs: 0 1 2 3
Transform: 1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
filter:
EDID:
00ffffffffffff000dae471700000000
101a0104a5261578028ad5ad4f43ad26
0f505400000001010101010101010101
0101010101016477804a713834406442
6a007dd610000018000000fe004e3137
334848452d4733320a20000000fe0043
4d4e0a202020202020202020000000fe
004e3137334848452d4733320a20005f
dithering depth: auto
supported: auto, 6 bpc, 8 bpc
dithering mode: auto
supported: auto, off, static 2x2, dynamic 2x2, temporal
scaling mode: None
supported: None, Full, Center, Full aspect
color vibrance: 150
range: (0, 200)
vibrant hue: 90
range: (0, 180)
link-status: Good
supported: Good, Bad
1920x1080 (0x68) 305.640MHz -HSync -VSync *current +preferred
h: width 1920 start 2020 end 2086 total 2250 skew 0 clock 135.84KHz
v: height 1080 start 1086 end 1096 total 1132 clock 120.00Hz
1680x1050 (0x69) 313.895MHz -HSync +VSync
h: width 1680 start 1816 end 2000 total 2320 skew 0 clock 135.30KHz
v: height 1050 start 1053 end 1059 total 1128 clock 119.95Hz
1400x1050 (0x6a) 260.857MHz -HSync +VSync
h: width 1400 start 1512 end 1664 total 1928 skew 0 clock 135.30KHz
v: height 1050 start 1053 end 1057 total 1128 clock 119.95Hz
1280x1024 (0x6b) 232.251MHz -HSync +VSync
h: width 1280 start 1384 end 1520 total 1760 skew 0 clock 131.96KHz
v: height 1024 start 1027 end 1034 total 1100 clock 119.96Hz
1280x960 (0x6c) 217.767MHz -HSync +VSync
h: width 1280 start 1384 end 1520 total 1760 skew 0 clock 123.73KHz
v: height 960 start 963 end 967 total 1032 clock 119.89Hz
1152x864 (0x6d) 176.450MHz -HSync +VSync
h: width 1152 start 1248 end 1368 total 1584 skew 0 clock 111.40KHz
v: height 864 start 867 end 871 total 929 clock 119.91Hz
1024x768 (0x6e) 137.890MHz -HSync +VSync
h: width 1024 start 1104 end 1208 total 1392 skew 0 clock 99.06KHz
v: height 768 start 771 end 775 total 826 clock 119.93Hz
800x600 (0x6f) 83.055MHz -HSync +VSync
h: width 800 start 856 end 936 total 1072 skew 0 clock 77.48KHz
v: height 600 start 603 end 607 total 646 clock 119.93Hz
640x480 (0x70) 52.625MHz -HSync +VSync
h: width 640 start 680 end 744 total 848 skew 0 clock 62.06KHz
v: height 480 start 483 end 487 total 518 clock 119.80Hz
720x400 (0x71) 48.878MHz -HSync +VSync
h: width 720 start 760 end 832 total 944 skew 0 clock 51.78KHz
v: height 400 start 403 end 413 total 432 clock 119.86Hz
640x400 (0x72) 43.079MHz -HSync +VSync
h: width 640 start 672 end 736 total 832 skew 0 clock 51.78KHz
v: height 400 start 403 end 409 total 432 clock 119.86Hz
640x350 (0x73) 37.734MHz -HSync +VSync
h: width 640 start 672 end 736 total 832 skew 0 clock 45.35KHz
v: height 350 start 353 end 363 total 378 clock 119.98Hz
这是lsmod | grep nvidia nvidia_uvm 757760 0 nvidia_drm 40960 2 nvidia_modeset 1093632 5 nvidia_drm drm_kms_helper 167936 1 nvidia_drm drm 360448 5 nvidia_drm,drm_kms_helper nvidia 14323712 326 nvidia_modeset,nvidia_uvm ipmi_msghandler 45056 2 nvidia,ipmi_devintf
谢谢大家
答案1
我创建了一个临时的 bash 脚本来调整亮度。然后我在键盘映射设置中创建 2 个 sortcut 来使用此脚本设置CTRL +Brightness UP或CTRL+ :Brightness Down
#!/bin/bash
# Step brightness value
STEP=2
# Max brightness value (defult 100)
MAX=100
# Min brightness value (defult 0)
MIN=0
COMMAND=$(xrandr --verbose | grep -i brightness | cut -f2 -d':' | tr -d "[:space:]")
ACTUAL=$(bc -l <<< $COMMAND*100 | cut -f1 -d'.')
while getopts ": u d" input
do
case $input in
u) if [ $ACTUAL -lt $MAX ];then
TOTAL=$(bc -l <<< $(($ACTUAL+$STEP))/100)
$(xrandr --output DP-0 --brightness $TOTAL)
fi;;
d) if [ $ACTUAL -gt $MIN ];then
TOTAL=$(bc -l <<< $(($ACTUAL-$STEP))/100)
$(xrandr --output DP-0 --brightness $TOTAL)
fi;;
?) printf "Usage: brightness [OPTION]\n"
printf "Increase or decrease birghtness on Ubuntu Xorg.\n"
printf "WAYLAND MUST BE DISABLED\n\n"
printf " -u\t Increases brightness\n"
printf " -d\t Decreases brightness\n"
exit 2;;
esac
done
答案2
看起来 Linux 可能识别了您的背光。您brightness
在 中看到文件了/sys/class/backlight/acpi_video0/
吗?如果看到,请尝试将数字写入其中,看看它是否会影响屏幕亮度。您可能需要以 root 身份执行此操作。
在我的系统上,Linux 甚至无法识别 Fn+Brightness 键,因为它们不会生成任何扫描码,但是我仍然可以通过让所有用户访问该brightness
文件chmod
并将整数写入其中来改变显示器的亮度。
答案3
NVIDIA 不支持 Wayland
正如其他人所发现的,nVidia 与 Wayland 配合不佳:Wayland 上的 Ubuntu 17.10 — (如何)安装 NVIDIA 驱动程序?。解决方案是切换到Xorg。总结一下cl-网使用以下步骤:
要安装 NVIDIA 驱动程序,请执行
sudo apt install nvidia-384
。此外,您还可以强制 GDM 登录屏幕默认使用 Xorg。
为此,只需执行sudo nano /etc/gdm3/custom.conf
。从行中
删除字符。 现在按+ ,然后按和保存该更改。#
# WaylandEnable=false
CtrlXYEnter重启Ubuntu操作系统,执行
sudo reboot
。
您可能遇到的另一个问题是 HDMI 无法将声音传输到外接显示器。要解决此问题,请参阅此问答:NVIDIA GeForce GTX 1050 Ti 上没有通过 HDMI 传输音频
答案4
既然我们已经这样做了,那就让我们列出一个“人们已经尝试过”的其他选项的清单吧(这是一个社区维基,请随意添加一些您自己的选项!)
更新至内核 4.18
更新至 Ubuntu 19.04(或至少非 gnome)https://askubuntu.com/a/1152763/20972
video.only_lcd 选项https://askubuntu.com/a/1041595/20972
尝试切换到主线内核https://askubuntu.com/a/1030296/20972 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1775065
acpi_osi=(即空白)https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1775065
从 19.04 开始切换到 nouveau
如果 xbacklight 有效,则设置一些键盘快捷键来调用它。https://unix.stackexchange.com/a/440843/8337
NVreg_EnableBacklightHandlerhttps://devtalk.nvidia.com/default/topic/1025559/linux/solus-nvidia-gtx-1070-brightness-control-not-working/
use_native_backlight 选项https://askubuntu.com/a/937133/20972