dglt1 / optimus-switch

*installer finished* installs nvidia prime and makes switching to intel only and back again easy as one command. intel mode fully disables the nvidia gpu to extend battery life.
71 stars 9 forks source link

lightdm not finding GPU after suspend? #10

Closed clementpoiret closed 4 years ago

clementpoiret commented 4 years ago

Hi,

I have a strange bug. When I suspend Manjaro (in both intel-only or nvidia mode), the computer won't resume again. The computer is freezing and I have to force the shutdown. Looking at journalctl, I can see many errors just before I forced the shutdown:

oct. 24 15:50:06 Lenovo-Y530 lightdm[788]: /usr/local/bin/optimus.sh: line 12: /sys/bus/pci/devices/0000:01:00.0/power/control: No such file or directory
oct. 24 15:50:06 Lenovo-Y530 lightdm[788]: /usr/local/bin/optimus.sh: line 27: /sys/bus/pci/devices/0000:01:00.0/remove: No such file or directory

Complete logs in intel-only mode: https://pastebin.com/Renac7Pn

inxi -Fxxxz;

System:
  Host: Lenovo-Y530 Kernel: 5.3.6-1-MANJARO x86_64 bits: 64 compiler: gcc 
  v: 9.2.0 Desktop: Xfce 4.14.1 tk: Gtk 3.24.12 info: xfce4-panel, plank 
  wm: xfwm4 dm: LightDM 1.30.0 Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 81FV v: Lenovo Legion Y530-15ICH 
  serial: <filter> Chassis: type: 10 v: Lenovo Legion Y530-15ICH 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter> UEFI: LENOVO 
  v: 8JCN52WW date: 06/14/2019 
Battery:
  ID-1: BAT0 charge: 13.1 Wh condition: 50.5/52.5 Wh (96%) volts: 10.9/11.3 
  model: LGC L17L3PG1 type: Li-poly serial: <filter> status: Discharging 
CPU:
  Topology: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 9216 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 52815 
  Speed: 800 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 5: 800 6: 801 7: 800 8: 801 9: 800 10: 800 11: 800 12: 800 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:3e9b 
  Display: x11 server: X.Org 1.20.5 driver: intel resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) 
  v: 4.5 Mesa 19.2.1 compat-v: 3.0 direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 00:1f.3 chip ID: 8086:a348 
  Device-2: NVIDIA GP107GL High Definition Audio driver: snd_hda_intel 
  v: kernel bus ID: 01:00.1 chip ID: 10de:0fb9 
  Sound Server: ALSA v: k5.3.6-1-MANJARO 
Network:
  Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: Lenovo driver: ath10k_pci v: kernel port: 5040 bus ID: 07:00.0 
  chip ID: 168c:0042 
  IF: wlp7s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8168 v: 8.047.04-NAPI port: 3000 bus ID: 08:00.0 
  chip ID: 10ec:8168 
  IF: enp8s0 state: down mac: <filter> 
  Device-3: Qualcomm Atheros type: USB driver: btusb bus ID: 1-14:3 
  chip ID: 0cf3:e500 
Drives:
  Local Storage: total: 1.36 TiB used: 128.28 GiB (9.2%) 
  ID-1: /dev/nvme0n1 vendor: Crucial model: CT500P1SSD8 size: 465.76 GiB 
  speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: P3CR013 scheme: GPT 
  ID-2: /dev/sda vendor: Samsung model: SSD 860 QVO 1TB size: 931.51 GiB 
  speed: 6.0 Gb/s serial: <filter> rev: 1B6Q scheme: GPT 
Partition:
  ID-1: / size: 233.96 GiB used: 63.78 GiB (27.3%) fs: ext4 
  dev: /dev/nvme0n1p5 
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 301 Uptime: 5m Memory: 15.52 GiB used: 1.82 GiB (11.7%) 
  Init: systemd v: 242 Compilers: gcc: 9.2.0 Shell: bash v: 5.0.11 
  running in: xfce4-terminal inxi: 3.0.36

Do you have any idea?

clementpoiret commented 4 years ago

Okay, sorry for the useless issue, it was linked to a bad kernel... Reinstalling linux53 solved the issue