V20已更新「教程」在deepin stable版本手动配制Intel+Nvidia 双显卡
Tofloor
poster avatar
aida
deepin
2019-05-28 00:38
Author
2020-04-17 更新 v20

v20源里面有440驱动,直接安装即可

sudo apt install nvidia-driver

然后通过最下面的方法配置即可,深度驱动管理器应该也可以自动安装(不行的话就动手装吧)

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



2019-06-04 更新 v15
我发现debian backports也是能在 stable版本使用的,所以把nvidia驱动升级到了418.56,安装成功
创建/etc/apt/source.list.d/stretch-backports.list

添加backports源
  1. deb [trusted=yes] https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
Copy the Code

安装backports驱动
  1. sudo apt update -y && sudo apt-get install -t stretch-backports nvidia-driver
Copy the Code

418.56支持的设备有 GeForce GTX 1660 Ti, GeForce GTX 1660 和RTX系列




-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


stable版本目前没有nv-prime的支持,aida给大家介绍一下如何配制intel双显卡驱动,其实还是很简单哒。
这样做有个缺点就是没法切集显,但是性能很好!

安装nvidia驱动
  1. sudo apt install nvidia-driver
Copy the Code

#关于nvidia驱动,还有nvidia-legacy-304xx-driver 和 nvidia-legacy-340xx-driver 是对旧显卡支持的驱动

然后编辑 /etc/X11/xorg.conf  #通过lspci | egrep 'VGA|3D',获取设备BusID,例子 00:02.0 填写PCI:0:2:0
  1. Section "Module"
  2.     Load "modesetting"
  3. EndSection

  4. Section "Device"
  5.     Identifier "nvidia"
  6.     Driver "nvidia"
  7.     BusID "PCI:X:X:X"      
  8.     Option "AllowEmptyInitialConfiguration"
  9. EndSection
Copy the Code



编辑~/.xinitrc
  1. xrandr --setprovideroutputsource modesetting NVIDIA-0
  2. xrandr --auto
  3. xrandr --dpi 96
Copy the Code



编辑/etc/lightdm/display_setup.sh
  1. #!/bin/sh
  2. xrandr --setprovideroutputsource modesetting NVIDIA-0
  3. xrandr --auto
  4. xrandr --dpi 96
Copy the Code

然后执行
  1. sudo chmod +x  /etc/lightdm/display_setup.sh
Copy the Code


编辑/etc/lightdm/lightdm.conf
在[Seat:*]行下添加
  1. display-setup-script=/etc/lightdm/display_setup.sh
Copy the Code

这样应该就可以重启了,如果没成功请检查一下配置是否正确,欢迎大家积极探讨!











Reply Favorite View the author
All Replies
2 / 7
To page
Alley
deepin
2019-06-03 17:36
#21
It has been deleted!
aida
deepin
2019-06-03 17:59
#22
https://bbs.deepin.org/post/178542
请问什么时候会有NV-prime方案我很害怕听到stable没有这种话

debian10 发布之后可能会有(猜的)
Reply View the author
iixii
deepin
2019-06-04 03:13
#23
https://bbs.deepin.org/post/178542
debian10 发布之后可能会有(猜的)

自从2018年8月之后,就再也没人更新deepin-nvidia-prime的代码了。
参见:
https://github.com/linuxdeepin/nvidia-prime/graphs/contributors

楼主帖子里的命令逻辑,如果用shell脚本,应该不是很难实现,可不可以加到deepin-nvidia-prime里?
Reply View the author
Comments
aida
2019-06-04 17:42
prime 没进入stable版本的原因是因为编译没过
iixii
deepin
2019-06-06 23:03
#24
我在Deepin系统上试过你这个改法,理论上讲是应该没有问题的,但是图形界面就是进不去。我查过Xorg的log,Xorg是直接崩溃,segment fault。

我Steam里面有几个付费的linux游戏,比如《CS:GO》和《胡闹厨房》,我想玩起来。

我的/home分区是单独分出来的,Steam的游戏在/home分区里,重装系统后不会丢的。我就试着重装了Ubuntu 19.04系统,直接在Ubuntu系统里选择安装nvidia-418驱动,直接就能用,不用手动改X的配置。
Reply View the author
Comments
aida
2019-06-06 23:33
把教程中涉及的 配置文件都发出来看一下
iixii
deepin
2019-06-07 00:52
#25
本帖最后由 johncarmark 于 2019-6-6 17:43 编辑

我回去收集一下Ubuntu系统信息,找一下为什么Ubuntu能启动。

我会收集一下:
内核的软件包的信息(主要是版本信息)
gcc版本(gcc直接涉及到驱动模块的编译)
nvidia-418软件包的信息(主要是版本信息)
xorg和xorg驱动模块的软件包的信息(主要是版本信息)
lightdm服务的配置,包括 /etc/lightdm/ 里的配置
xorg.xonf相关的配置,包括 /etc/X11/ 和 /usr/share/X11/ 里的相关配置
我自己添加的 grub 启动参数
/etc/modprobe.d/ 里的配置
/etc/modules、/etc/modules-load.d/ 和 /etc/initramfs-tools/ 里关于内核模块加载的配置
启动进入图形界面之后,xorg的log

我明确知道Ubuntu没有装bumblebee,所以不用考虑bumblebee的问题。楼主觉得还有哪些需要的收集的?

我在重装Ubuntu 19.04之前,试图在Deepin 15.10.1上安装Ubuntu的xorg,版本是1.20,而Deepin自带的xorg是1.19的。结果发现,segment fault不再出现了,但是图形界面还是进不去。

因为1.19版xorg出现段错误那是一定一定不行的,我还google了那个段错误,好像是说新版已经修复了。所以我就用1.20版的xorg(来自ubuntu的,软件源混装不好,但是没什么好办法)去试了下面2个版本的Nvidia闭源驱动:

1. 楼主的那个Debian的418版本的驱动,能加载。首先是lsmod能看到它的内核模块nvidia、nvidia_drm、nvidia_modeset是加载了的,其次是在xorg的log中明确看到了nvidia初始化的信息,包括显卡型号、显存容量等等,而且没有看到nvidia加载失败的那种(EE)的错误。在这种情况下,图形界面还是进不去。
2. 从nvidia官网上下载的NVidia-xxx.sh闭源驱动。我卸载了deb包的驱动之后,又试了nvidia官方的430.14版的闭源驱动,结果跟 1. 一样。

如果遇到我这种情况,比如xorg 1.19段错误直接崩溃,但1.20至少能不崩,这种确实需要别的软件源的情况,那么是更推荐装Debian的新版本软件包,还是更推荐ubuntu的?
Reply View the author
dogboss
deepin
2019-06-07 01:02
#26
能调整屏幕亮度了么
Reply View the author
iixii
deepin
2019-06-07 01:42
#27
我认为如果Deepin系统,在硬件兼容性方面,能跟Ubuntu系统做到相同,不用超过,只要相同就行。再搭配deepin-wine和deepin-appstore,那绝对是最好用的国产linux,没有之一。

deepin-wine和deepin-appstore,以及一系列可以用deb包安装的windows应用(好像还有安卓应用),是Deepin系统明显胜过优麒麟系统的地方。deepin-wine和deepin-appstore以及里面的deb格式的各种移植的应用软件,真的是Linux界的一个神作!牛逼牛逼!

Ubuntu也不是完美的。我的机器装 Ubuntu 18.04 LTS,在安装界面会死机,估计是kernel panic,因为连切换tty2都不能,所以根本装不上。但Ubuntu 19.04就没有这个问题。
还有就是Ubuntu 19.04跟我的电脑有ACPI的兼容问题,导致关机和重启时,机器关不掉,就卡在那儿了。这可能是BIOS的锅,可能不怪linux本身。我不得不用grub参数 acpi_osi=! acpi_osi='Windows 2009' 告诉BIOS我这是个windows 2009的系统,才能正常的关机和重启。
Reply View the author
superendermansm
deepin
2019-06-07 03:30
#28
alleo 发表于 2019-6-3 00:42
一直卡在这里。。。还有屏幕亮度调节有木有方法

用tab操作光标回车确认
Reply View the author
pho
deepin
2019-06-09 20:19
#29
https://bbs.deepin.org/post/178542
debian10 发布之后可能会有(猜的)

这种受限于debian的感觉可不好啊
Reply View the author
pho
deepin
2019-06-09 20:21
#30
本帖最后由 phoenifox 于 2019-6-9 12:22 编辑

为啥unstable能用nvidia-prime? 基于debian要超越debian才好,受限于debian的弱点比较憋屈,解决显卡驱动问题十分重要重要重要啊,不然我只能继续用unstable版了
Reply View the author
Stoney
deepin
2019-06-19 18:58
#31
安装debian backports 后:

这个怎么回事呢
https://bbs.deepin.org/user/101846

Reply View the author
iixii
deepin
2019-06-21 05:29
#32
内核版本:
  1. $ uname -r
  2. 5.0.0-17-generic
Copy the Code
gcc版本:
  1. $ gcc -v
  2. Using built-in specs.
  3. COLLECT_GCC=gcc
  4. COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/8/lto-wrapper
  5. OFFLOAD_TARGET_NAMES=nvptx-none
  6. OFFLOAD_TARGET_DEFAULT=1
  7. Target: x86_64-linux-gnu
  8. Configured with: ../src/configure -v --with-pkgversion='Ubuntu 8.3.0-6ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-8/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-8 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
  9. Thread model: posix
  10. gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)
Copy the Code
nvidia-418软件包的信息:
  1. $ apt list --installed | grep nvidia

  2. WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

  3. libnvidia-cfg1-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  4. libnvidia-common-418/disco,disco,now 418.56-0ubuntu1 all [已安装,自动]
  5. libnvidia-compute-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  6. libnvidia-compute-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  7. libnvidia-decode-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  8. libnvidia-decode-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  9. libnvidia-encode-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  10. libnvidia-encode-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  11. libnvidia-fbc1-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  12. libnvidia-fbc1-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  13. libnvidia-gl-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  14. libnvidia-gl-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  15. libnvidia-ifr1-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  16. libnvidia-ifr1-418/disco,now 418.56-0ubuntu1 i386 [已安装,自动]
  17. nvidia-compute-utils-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  18. nvidia-dkms-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  19. nvidia-driver-418/disco,now 418.56-0ubuntu1 amd64 [已安装]
  20. nvidia-kernel-common-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  21. nvidia-kernel-source-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  22. nvidia-prime/disco,disco,now 0.8.10 all [已安装,自动]
  23. nvidia-settings/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  24. nvidia-utils-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
  25. xserver-xorg-video-nvidia-418/disco,now 418.56-0ubuntu1 amd64 [已安装,自动]
Copy the Code
没有lightdm:
  1. # ls /etc/lightdm
  2. ls: cannot access '/etc/lightdm': No such file or directory
  3. #
  4. # systemctl list-units| grep lightdm
  5. #
Copy the Code



Reply View the author
jianguo922
deepin
2019-06-21 05:57
#33
什么时候 来个deepin stable版本手动配制Intel+AMD双显卡?
Reply View the author
iixii
deepin
2019-06-21 06:04
#34
/etc/X11 的文件:

  1. root@haozhang-laptop:~# ls /etc/X11/ -l
  2. total 80
  3. drwxr-xr-x 2 root root  4096 4月  17 03:04 app-defaults
  4. drwxr-xr-x 2 root root  4096 4月  17 03:03 cursors
  5. -rw-r--r-- 1 root root    15 4月  17 03:05 default-display-manager
  6. drwxr-xr-x 4 root root  4096 4月  17 03:03 fonts
  7. -rw-r--r-- 1 root root 17394 1月  20  2017 rgb.txt
  8. drwxr-xr-x 2 root root  4096 4月  17 03:04 xinit
  9. drwxr-xr-x 2 root root  4096 10月 25  2018 xkb
  10. -rwxr-xr-x 1 root root   709 1月  20  2017 Xreset
  11. drwxr-xr-x 2 root root  4096 4月  17 03:03 Xreset.d
  12. drwxr-xr-x 2 root root  4096 4月  17 03:03 Xresources
  13. -rwxr-xr-x 1 root root  3730 12月 14  2018 Xsession
  14. drwxr-xr-x 2 root root  4096 6月  20 21:06 Xsession.d
  15. -rw-r--r-- 1 root root   265 1月  20  2017 Xsession.options
  16. drwxr-xr-x 2 root root  4096 4月  17 03:04 xsm
  17. -rw-r--r-- 1 root root    13 12月  6  2016 XvMCConfig
  18. -rw-r--r-- 1 root root   630 4月  17 03:04 Xwrapper.config
  19. root@haozhang-laptop:~#
Copy the Code


/usr/share/X11/xorg.conf.d/ 的文件:

  1. root@haozhang-laptop:~# ls -l /usr/share/X11/xorg.conf.d/
  2. total 28
  3. -rw-r--r-- 1 root root   92 4月   7 04:02 10-amdgpu.conf
  4. -rw-r--r-- 1 root root  210 3月  26 00:01 10-nvidia.conf
  5. -rw-r--r-- 1 root root 1350 4月   3 17:03 10-quirks.conf
  6. -rw-r--r-- 1 root root   92 3月  28 19:15 10-radeon.conf
  7. -rw-r--r-- 1 root root  329 6月  20 21:15 11-nvidia-prime.conf
  8. -rw-r--r-- 1 root root 1429 3月  31 09:56 40-libinput.conf
  9. -rw-r--r-- 1 root root 3039 4月  12 15:26 70-wacom.conf
  10. root@haozhang-laptop:~#
Copy the Code


10-amdgpu.conf

  1. Section "OutputClass"
  2.         Identifier "AMDgpu"
  3.         MatchDriver "amdgpu"
  4.         Driver "amdgpu"
  5. EndSectionroot
Copy the Code


10-nvidia.conf

  1. Section "OutputClass"
  2.     Identifier "nvidia"
  3.     MatchDriver "nvidia-drm"
  4.     Driver "nvidia"
  5.     Option "AllowEmptyInitialConfiguration"
  6.     ModulePath "/usr/lib/x86_64-linux-gnu/nvidia-418/xorg"
  7. EndSection
Copy the Code


10-quirks.conf

  1. # Collection of quirks and blacklist/whitelists for specific devices.

  2. # Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable
  3. # http://bugs.freedesktop.org/show_bug.cgi?id=22442
  4. Section "InputClass"
  5.         Identifier "ThinkPad HDAPS accelerometer blacklist"
  6.         MatchProduct "ThinkPad HDAPS accelerometer data"
  7.         Option "Ignore" "on"
  8. EndSection

  9. # https://bugzilla.redhat.com/show_bug.cgi?id=523914
  10. # Mouse does not move in PV Xen guest
  11. # Explicitly tell evdev to not ignore the absolute axes.
  12. Section "InputClass"
  13.         Identifier "Xen Virtual Pointer axis blacklist"
  14.         MatchProduct "Xen Virtual Pointer"
  15.         Option "IgnoreAbsoluteAxes" "off"
  16.         Option "IgnoreRelativeAxes" "off"
  17. EndSection

  18. # https://bugs.freedesktop.org/show_bug.cgi?id=55867
  19. # Bug 55867 - Doesn't know how to tag XI_TRACKBALL
  20. Section "InputClass"
  21.         Identifier "Tag trackballs as XI_TRACKBALL"
  22.         MatchProduct "trackball"
  23.         MatchDriver "evdev"
  24.         Option "TypeName" "TRACKBALL"
  25. EndSection

  26. # https://bugs.freedesktop.org/show_bug.cgi?id=62831
  27. # Bug 62831 - Mionix Naos 5000 mouse detected incorrectly
  28. Section "InputClass"
  29.         Identifier "Tag Mionix Naos 5000 mouse XI_MOUSE"
  30.         MatchProduct "La-VIEW Technology Naos 5000 Mouse"
  31.         MatchDriver "evdev"
  32.         Option "TypeName" "MOUSE"
  33. EndSection
Copy the Code


10-radeon.conf

  1. Section "OutputClass"
  2.         Identifier "Radeon"
  3.         MatchDriver "radeon"
  4.         Driver "radeon"
  5. EndSection
Copy the Code

Reply View the author
iixii
deepin
2019-06-21 06:08
#35
11-nvidia-prime.conf

  1. # DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager

  2. Section "OutputClass"
  3.     Identifier "Nvidia Prime"
  4.     MatchDriver "nvidia-drm"
  5.     Driver "nvidia"
  6.     Option "AllowEmptyInitialConfiguration"
  7.     Option "IgnoreDisplayDevices" "CRT"
  8.     Option "PrimaryGPU" "Yes"
  9.     ModulePath "/x86_64-linux-gnu/nvidia/xorg"
  10. EndSection
Copy the Code


40-libinput.conf

  1. # Match on all types of devices but joysticks
  2. #
  3. # If you want to configure your devices, do not copy this file.
  4. # Instead, use a config snippet that contains something like this:
  5. #
  6. # Section "InputClass"
  7. #   Identifier "something or other"
  8. #   MatchDriver "libinput"
  9. #
  10. #   MatchIsTouchpad "on"
  11. #   ... other Match directives ...
  12. #   Option "someoption" "value"
  13. # EndSection
  14. #
  15. # This applies the option any libinput device also matched by the other
  16. # directives. See the xorg.conf(5) man page for more info on
  17. # matching devices.

  18. Section "InputClass"
  19.         Identifier "libinput pointer catchall"
  20.         MatchIsPointer "on"
  21.         MatchDevicePath "/dev/input/event*"
  22.         Driver "libinput"
  23. EndSection

  24. Section "InputClass"
  25.         Identifier "libinput keyboard catchall"
  26.         MatchIsKeyboard "on"
  27.         MatchDevicePath "/dev/input/event*"
  28.         Driver "libinput"
  29. EndSection

  30. Section "InputClass"
  31.         Identifier "libinput touchpad catchall"
  32.         MatchIsTouchpad "on"
  33.         MatchDevicePath "/dev/input/event*"
  34.         Driver "libinput"
  35. EndSection

  36. Section "InputClass"
  37.         Identifier "libinput touchscreen catchall"
  38.         MatchIsTouchscreen "on"
  39.         MatchDevicePath "/dev/input/event*"
  40.         Driver "libinput"
  41. EndSection

  42. Section "InputClass"
  43.         Identifier "libinput tablet catchall"
  44.         MatchIsTablet "on"
  45.         MatchDevicePath "/dev/input/event*"
  46.         Driver "libinput"
  47. EndSection
Copy the Code


70-wacom.conf

  1. # Some of the below input classes appear 3x times, once for each of
  2. # "tablet", "touchscreen", and "touchpad" to ensure that the Wacom
  3. # driver is not accidentally bound to other types of hardware that
  4. # Wacom has made which are not handled by the wacom driver (e.g the
  5. # Wacom Bluetooth Keyboard)
  6. #
  7. # https://sourceforge.net/p/linuxwacom/bugs/294/

  8. Section "InputClass"
  9.         Identifier "Wacom USB tablet class"
  10.         MatchUSBID "056a:*"
  11.         MatchDevicePath "/dev/input/event*"
  12.         MatchIsTablet "true"
  13.         Driver "wacom"
  14. EndSection

  15. #Section "InputClass"
  16. #        Identifier "Wacom USB touchscreen class"
  17. #        MatchUSBID "056a:*"
  18. #        MatchDevicePath "/dev/input/event*"
  19. #        MatchIsTouchscreen "true"
  20. #        Driver "wacom"
  21. #EndSection

  22. Section "InputClass"
  23.         Identifier "Wacom USB touchpad class"
  24.         MatchUSBID "056a:*"
  25.         MatchDevicePath "/dev/input/event*"
  26.         MatchIsTouchpad "true"
  27.         Driver "wacom"
  28. EndSection

  29. Section "InputClass"
  30.         Identifier "Wacom tablet class"
  31.         MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
  32.         MatchDevicePath "/dev/input/event*"
  33.         MatchIsTablet "true"
  34.         Driver "wacom"
  35. EndSection

  36. #Section "InputClass"
  37. #        Identifier "Wacom touchscreen class"
  38. #        MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
  39. #        MatchDevicePath "/dev/input/event*"
  40. #        MatchIsTouchscreen "true"
  41. #        Driver "wacom"
  42. #EndSection

  43. Section "InputClass"
  44.         Identifier "Wacom touchpad class"
  45.         MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
  46.         MatchDevicePath "/dev/input/event*"
  47.         MatchIsTouchpad "true"
  48.         Driver "wacom"
  49. EndSection

  50. # Serial Wacom devices should always be one of tablet, touchscreen, or
  51. # touchpad so we can safely get away with just one match section in
  52. # these cases
  53. Section "InputClass"
  54.         Identifier "Wacom PnP device class"
  55.         MatchPnPID "WACf*|WCOM*|WACM*|FUJ02e5|FUJ02e7|FUJ02e9"
  56.         MatchDevicePath "/dev/input/event*"
  57.         Driver "wacom"
  58. EndSection

  59. Section "InputClass"
  60.         Identifier "Wacom serial class"
  61.         MatchProduct "Serial Wacom Tablet"
  62.         Driver "wacom"
  63. EndSection

  64. Section "InputClass"
  65.         Identifier "Wacom serial class identifiers"
  66.         MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
  67.         Driver "wacom"
  68. EndSection

  69. # Hanwang tablets
  70. Section "InputClass"
  71.         Identifier "Hanwang class"
  72.         MatchProduct "Hanwang"
  73.         MatchDevicePath "/dev/input/event*"
  74.         Driver "wacom"
  75. EndSection

  76. # Waltop tablets
  77. Section "InputClass"
  78.         Identifier "Waltop class"
  79.         MatchProduct "WALTOP"
  80.         MatchIsTablet "on"
  81.         MatchDevicePath "/dev/input/event*"
  82.         Driver "wacom"
  83. EndSection

  84. # N-Trig Duosense Electromagnetic Digitizer
  85. Section "InputClass"
  86.         Identifier "Wacom N-Trig class"
  87.         MatchProduct "HID 1b96:0001|N-Trig Pen|N-Trig DuoSense"
  88.         MatchDevicePath "/dev/input/event*"
  89.         Driver "wacom"
  90.         Option "Button2" "3"
  91. EndSection

  92. # Dell Canvas 27 (touch part is an Advanced Silicon, pen part a Wacom)
  93. Section "InputClass"
  94.         Identifier "Dell Canvas 27 Touch"
  95.         MatchUSBID "2575:0204"
  96.         MatchDevicePath "/dev/input/event*"
  97.         MatchIsTouchscreen "true"
  98.         Driver "wacom"
  99. EndSection
Copy the Code

Reply View the author
wtz
deepin
2019-06-21 06:12
#36
麻烦你们先把志愿者地图修复一下吧:
https://bbs.deepin.org/module
Reply View the author
iixii
deepin
2019-06-21 06:20
#37
/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. GRUB_DEFAULT=0
  6. GRUB_TIMEOUT=0
  7. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  8. GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi=! acpi_osi='Windows 2009'"
  9. GRUB_CMDLINE_LINUX=""

  10. # Uncomment to enable BadRAM filtering, modify to suit your needs
  11. # This works with Linux (no patch required) and with any kernel that obtains
  12. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  13. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

  14. # Uncomment to disable graphical terminal (grub-pc only)
  15. #GRUB_TERMINAL=console

  16. # The resolution used on graphical terminal
  17. # note that you can use only modes which your graphic card supports via VBE
  18. # you can see them in real GRUB with the command `vbeinfo'
  19. #GRUB_GFXMODE=640x480

  20. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  21. #GRUB_DISABLE_LINUX_UUID=true

  22. # Uncomment to disable generation of recovery mode menu entries
  23. #GRUB_DISABLE_RECOVERY="true"

  24. # Uncomment to get a beep at grub start
  25. #GRUB_INIT_TUNE="480 440 1"
Copy the Code


/etc/modprobe.d 目录的文件:

  1. root@haozhang-laptop:~# ls -l /etc/modprobe.d/
  2. total 44
  3. -rw-r--r-- 1 root root 2507 7月  31  2015 alsa-base.conf
  4. -rw-r--r-- 1 root root  154 1月   7 15:32 amd64-microcode-blacklist.conf
  5. -rw-r--r-- 1 root root  325 4月  12 16:23 blacklist-ath_pci.conf
  6. -rw-r--r-- 1 root root 1518 4月  12 16:23 blacklist.conf
  7. -rw-r--r-- 1 root root  210 4月  12 16:23 blacklist-firewire.conf
  8. -rw-r--r-- 1 root root  677 4月  12 16:23 blacklist-framebuffer.conf
  9. -rw-r--r-- 1 root root  156 7月  31  2015 blacklist-modem.conf
  10. lrwxrwxrwx 1 root root   41 6月   6 00:32 blacklist-oss.conf -> /lib/linux-sound-base/noOSS.modprobe.conf
  11. -rw-r--r-- 1 root root  583 4月  12 16:23 blacklist-rare-network.conf
  12. -rw-r--r-- 1 root root  127 8月   6  2018 dkms.conf
  13. -rw-r--r-- 1 root root  154 3月  17 08:07 intel-microcode-blacklist.conf
  14. -rw-r--r-- 1 root root  347 4月  12 16:23 iwlwifi.conf
  15. root@haozhang-laptop:~#
Copy the Code


/etc/modprobe.d/blacklist-framebuffer.conf

  1. # Framebuffer drivers are generally buggy and poorly-supported, and cause
  2. # suspend failures, kernel panics and general mayhem.  For this reason we
  3. # never load them automatically.
  4. blacklist aty128fb
  5. blacklist atyfb
  6. blacklist radeonfb
  7. blacklist cirrusfb
  8. blacklist cyber2000fb
  9. blacklist cyblafb
  10. blacklist gx1fb
  11. blacklist hgafb
  12. blacklist i810fb
  13. blacklist intelfb
  14. blacklist kyrofb
  15. blacklist lxfb
  16. blacklist matroxfb_base
  17. blacklist neofb
  18. blacklist nvidiafb
  19. blacklist pm2fb
  20. blacklist rivafb
  21. blacklist s1d13xxxfb
  22. blacklist savagefb
  23. blacklist sisfb
  24. blacklist sstfb
  25. blacklist tdfxfb
  26. blacklist tridentfb
  27. #blacklist vesafb
  28. blacklist vfb
  29. blacklist viafb
  30. blacklist vt8623fb
  31. blacklist udlfb
Copy the Code


Reply View the author
iixii
deepin
2019-06-21 06:24
#38
/etc/modules 相关的文件:

  1. root@haozhang-laptop:~# cat /etc/modules
  2. # /etc/modules: kernel modules to load at boot time.
  3. #
  4. # This file contains the names of kernel modules that should be loaded
  5. # at boot time, one per line. Lines beginning with "#" are ignored.

  6. root@haozhang-laptop:~# ls -l /etc/modules-load.d/
  7. total 4
  8. -rw-r--r-- 1 root root 119 4月  10 23:07 cups-filters.conf
  9. lrwxrwxrwx 1 root root  10 5月  16 18:07 modules.conf -> ../modules
  10. root@haozhang-laptop:~# cat /etc/modules-load.d/cups-filters.conf
  11. # Parallel printer driver modules loading for cups
  12. # LOAD_LP_MODULE was 'yes' in /etc/default/cups
  13. lp
  14. ppdev
  15. parport_pc
  16. root@haozhang-laptop:~#
Copy the Code
Reply View the author
iixii
deepin
2019-06-21 06:32
#39
/etc/initramfs-tools/modules 的内容是默认的

  1. # List of modules that you want to include in your initramfs.
  2. # They will be loaded at boot time in the order below.
  3. #
  4. # Syntax:  module_name [args ...]
  5. #
  6. # You must run update-initramfs(8) to effect this change.
  7. #
  8. # Examples:
  9. #
  10. # raid1
  11. # sd_mod
Copy the Code


xorg 的版本:

  1. root@haozhang-laptop:/tmp# apt list --installed | grep xorg

  2. WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

  3. xorg-docs-core/disco,disco,now 1:1.7.1-1.1 all [installed,automatic]
  4. xorg/disco,now 1:7.7+19ubuntu12 amd64 [installed,automatic]
  5. xserver-xorg-core/disco,now 2:1.20.4-1ubuntu3 amd64 [installed,automatic]
  6. xserver-xorg-input-all/disco,now 1:7.7+19ubuntu12 amd64 [installed,automatic]
  7. xserver-xorg-input-libinput/disco,now 0.28.2-2 amd64 [installed,automatic]
  8. xserver-xorg-input-wacom/disco,now 1:0.36.1-0ubuntu2 amd64 [installed,automatic]
  9. xserver-xorg-legacy/disco,now 2:1.20.4-1ubuntu3 amd64 [installed,automatic]
  10. xserver-xorg-video-all/disco,now 1:7.7+19ubuntu12 amd64 [installed,automatic]
  11. xserver-xorg-video-amdgpu/disco,now 19.0.1-1 amd64 [installed,automatic]
  12. xserver-xorg-video-ati/disco,now 1:19.0.1-0ubuntu1 amd64 [installed,automatic]
  13. xserver-xorg-video-fbdev/disco,now 1:0.5.0-1ubuntu1 amd64 [installed,automatic]
  14. xserver-xorg-video-intel/disco,now 2:2.99.917+git20180925-2 amd64 [installed,automatic]
  15. xserver-xorg-video-nouveau/disco,now 1:1.0.16-1 amd64 [installed,automatic]
  16. xserver-xorg-video-nvidia-418/disco,now 418.56-0ubuntu1 amd64 [installed,automatic]
  17. xserver-xorg-video-qxl/disco,now 0.1.5-2build2 amd64 [installed,automatic]
  18. xserver-xorg-video-radeon/disco,now 1:19.0.1-0ubuntu1 amd64 [installed,automatic]
  19. xserver-xorg-video-vesa/disco,now 1:2.4.0-2 amd64 [installed,automatic]
  20. xserver-xorg-video-vmware/disco,now 1:13.3.0-2build1 amd64 [installed,automatic]
  21. xserver-xorg/disco,now 1:7.7+19ubuntu12 amd64 [installed,automatic]
  22. root@haozhang-laptop:/tmp#
Copy the Code


Reply View the author
iixii
deepin
2019-06-21 06:36
#40
xorg 的日志,只有
/var/log/Xorg.0.log

/var/log/Xorg.0.log.old
这2个文件。
Reply View the author
2 / 7
To page