Debian 11 «Bullseye». Обновился c версии 10, но проблема с suspend/hibernate

Автор arn, 11 сентября 2021, 17:38:45

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

arn

Проблема в следующем:
при попытке войти в ждущий/спящий режимы компьютер как положено "затухает", но после этого уже не включается. В спящем режиме и в ждущем гаснет экран, видимо отключается...и тишина.
Винт крутится, кулер тоже. В обоих случаях помогает только физическая перезагрузка.
Как бороться?

вот было в 2011г что-то похожее у парня.
https://mydebiantricks.blogspot.com/2011/01/debian.html

Что характерно, команда
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
вполне себе отключает все режимы и ноут не уходит в сон вообще
Для этого надо разлогиниться, потом залогиниться:
sudo systemctl restart systemd-logind.service


Команда же
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
вроде как включает режимы, но они не работают как надо, а так, как я в начале поста описал

а команда
sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
выдает
sleep.target - Sleep
   Loaded: loaded (/lib/systemd/system/sleep.target; static; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)

● suspend.target - Suspend
   Loaded: loaded (/lib/systemd/system/suspend.target; static; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)

● hibernate.target - Hibernate
   Loaded: loaded (/lib/systemd/system/hibernate.target; static; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)

● hybrid-sleep.target - Hybrid Suspend+Hibernate
   Loaded: loaded (/lib/systemd/system/hybrid-sleep.target; static; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:systemd.special(7)


Начал думать что это драйвер novueu глючит, но поставить проприетарные дрова не могу пока (чтобы он отключился):
$sudo nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT216M [GeForce GT 330M] [10de:0a29] (rev a2)

Checking card:  NVIDIA Corporation GT216M [GeForce GT 330M] (rev a2)
Your card is only supported by the 340 legacy drivers series, which is only available up to buster.

Да... к сожалению нужны не новые дрова, т.к. видяха устаревшая, а их для новой Debian 11 «Bullseye» пока не выпустили...
$ sudo apt install nvidia-legacy-340xx-driver
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Чтение информации о состоянии... Готово         
Пакет nvidia-legacy-340xx-driver недоступен, но упомянут в списке зависимостей другого
пакета. Это может означать, что пакет отсутствует, устарел или
доступен из источников, не упомянутых в sources.list

E: Для пакета «nvidia-legacy-340xx-driver» не найден кандидат на установку


Потому временно отключил режимы сна/гибернации через:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target


Вопрос, может дело не в драйвере novueu и можно как-то иначе решить проблему с гибернацией?

stazher

#1
Аналогично. Короткое время поэкспериментировал с debian 10, потом перешел на 11, тогда еще "testing". В 11-м по сравнению с 10-м существенно уменьшилось число пакетов, устанавливающихся с ошибкой (можно сказать, что их и не стало вовсе). Например, тот же проприетарный nvidia-driver установился штатным образом без проблем (в 10-м после установки приводил к зависанию при загрузке системы с надписью "fsckd-cancel-msg:press ctrl+c to cancel all filesystem checks in progress").

Но вот, пожалуй, самый существенный косяк с 11-м - это как раз проблема с suspend/hibernate (в 10-м это работало прекрасно). При попытке перевести в ждущий режим проц начинал греться, а по экрану бежали строки, из коих следовало, что засуспендиться компу мешает какой-то девайс. Обнаружилось, что если отключить через BIOS интегрированные в матплату WiFi+Bluetooth, то ждущий режим работает штатным образом. Но поскольку я иногда использую WiFi+Bluetooth для передачи файлов, то предпочел запретить переход в жд. режим.

Что касается hibernate, то его не удалось увидеть работающим в 11-м. Т. е. отключиться-то комп отключается (при отключенном, как и выше, WiFi+Bluetooth) и даже начинает при пробуждении загружать сохраненный на диске файл состояния, но потом что-то сбивает его с пути истинного, и он просто тупо перезагружается. Один раз я даже увидел экран с открытыми на момент засыпания документами, но радость моя длилась мгновение, и дальше пошла перезагрузка. И это ещё упрощенный вариант поведения системы, в большинстве случаев возникает черный экран, из коего приходится выходить с помощью "волшебной" комбинации Alt+SysRq+REISUB. В общем, попытка гибернироваться ничем не отличается по результату от комбинации выкл. + вкл., но с бОльшим числом телодвижений. Так что пока работаю без использования suspend/hibernate.

ЗЫ Пробовал обновляться до sid (сейчас это testing debian 12 "bookworm"), suspend/hibernate работают так же (т. е. не работают). Ну и там версия ядра та же самая, 5.10.0-8. Как и в теперешнем sid (debian 13 "trixie").

dzhoser

#2
Цитата: stazher от 17 сентября 2021, 10:28:07Обнаружилось, что если отключить через BIOS интегрированные в матплату WiFi+Bluetooth, то ждущий режим работает штатным образом. Но поскольку я иногда использую WiFi+Bluetooth
Может проблема в драйверах этих устройств, но вы не предоставили информацию о железе, а экстрасенсы в отпуске.
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

stazher

Цитата: dzhoser от 17 сентября 2021, 11:48:51Может проблема в драйверах этих устройств, но вы не предоставили информацию о железе, а экстрасенсы в отпуске.
Да, с драйверами не всё в порядке. Мать Asus ROG Zenith Extreme, проц AMD Ryzen Threadripper-2950X, интегрированы WiFi 802.11ad 60GHz + WiFi 802.11a/b/g/n/ac 2.4/5GHz + Bluetooth Qualcomm Atheros. Система при установке и загрузках требовала файлы прошивки. Установил прошивку firmware-atheros (20210315-3) [non-free], кол-во требуемых при загрузке файлов прошивки значительно уменьшилось, но не исчезло. Каналы WiFi 2.4/5GHz и Bluetooth заработали, а 60GHz проверить не могу (может, оставшиеся необходимые файлы прошивки как раз с ним и связаны, не знаю). А что делать. Есть более поздняя версия прошивки, firmware-atheros (20210818-1), но она относится к testing (debian 12). И кстати, на debian 10 ведь suspend/hibernate работало, а дров так же недоставало.

dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

arn

dzhoser,

$ uname -a
Linux note 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux

$ lspci -nnk
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DMI [8086:d132] (rev 11)
        Subsystem: Samsung Electronics Co Ltd Core Processor DMI [144d:c06a]
00:03.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express Root Port 1 [8086:d138] (rev 11)
        Kernel driver in use: pcieport
00:08.0 System peripheral [0880]: Intel Corporation Core Processor System Management Registers [8086:d155] (rev 11)
        Subsystem: Device [0086:0055]
00:08.1 System peripheral [0880]: Intel Corporation Core Processor Semaphore and Scratchpad Registers [8086:d156] (rev 11)
        Subsystem: Device [0086:0056]
00:08.2 System peripheral [0880]: Intel Corporation Core Processor System Control and Status Registers [8086:d157] (rev 11)
        Subsystem: Device [0086:0057]
00:08.3 System peripheral [0880]: Intel Corporation Core Processor Miscellaneous Registers [8086:d158] (rev 11)
        Subsystem: Device [0086:0058]
00:10.0 System peripheral [0880]: Intel Corporation Core Processor QPI Link [8086:d150] (rev 11)
        Subsystem: Device [0086:0050]
00:10.1 System peripheral [0880]: Intel Corporation Core Processor QPI Routing and Protocol Registers [8086:d151] (rev 11)
        Subsystem: Device [0086:0051]
00:1a.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)
        DeviceName:  Onboard Audio
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 [8086:3b42] (rev 06)
        Kernel driver in use: pcieport
00:1c.2 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 3 [8086:3b46] (rev 06)
        Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 [8086:3b48] (rev 06)
        Kernel driver in use: pcieport
00:1d.0 USB controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b34] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: ehci-pci
        Kernel modules: ehci_pci
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a6)
00:1f.0 ISA bridge [0601]: Intel Corporation HM55 Chipset LPC Interface Controller [8086:3b09] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: lpc_ich
        Kernel modules: lpc_ich
00:1f.2 IDE interface [0101]: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller [8086:3b28] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, ata_generic
00:1f.3 SMBus [0c05]: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller [8086:3b30] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.5 IDE interface [0101]: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller [8086:3b2d] (rev 06)
        Subsystem: Samsung Electronics Co Ltd R730 Laptop [144d:c06a]
        Kernel driver in use: ata_piix
        Kernel modules: ata_piix, ata_generic
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT216M [GeForce GT 330M] [10de:0a29] (rev a2)
        Subsystem: Samsung Electronics Co Ltd GT216M [GeForce GT 330M] [144d:c06a]
        Kernel driver in use: nouveau
        Kernel modules: nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation GT216 HDMI Audio Controller [10de:0be2] (rev a1)
        Subsystem: Samsung Electronics Co Ltd GT216 HDMI Audio Controller [144d:c06a]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
02:00.0 Network controller [0280]: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01)
        Subsystem: Askey Computer Corp. AR9285 Wireless Network Adapter (PCI-Express) [144f:7167]
        Kernel driver in use: ath9k
        Kernel modules: ath9k
06:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. Yukon Optima 88E8059 [PCIe Gigabit Ethernet Controller with AVB] [11ab:4381] (rev 11)
        Subsystem: Samsung Electronics Co Ltd Yukon Optima 88E8059 [PCIe Gigabit Ethernet Controller with AVB] [144d:c06a]
        Kernel driver in use: sky2
        Kernel modules: sky2
3f:00.0 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers [8086:2c52] (rev 04)
        Subsystem: Intel Corporation Core Processor QuickPath Architecture Generic Non-Core Registers [8086:8086]
3f:00.1 Host bridge [0600]: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:2c81] (rev 04)
        Subsystem: Intel Corporation Core Processor QuickPath Architecture System Address Decoder [8086:8086]
3f:02.0 Host bridge [0600]: Intel Corporation Core Processor QPI Link 0 [8086:2c90] (rev 04)
        Subsystem: Intel Corporation Core Processor QPI Link 0 [8086:8086]
        Kernel modules: i7core_edac
3f:02.1 Host bridge [0600]: Intel Corporation Core Processor QPI Physical 0 [8086:2c91] (rev 04)
        Subsystem: Intel Corporation Core Processor QPI Physical 0 [8086:8086]
3f:03.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller [8086:2c98] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller [8086:8086]
3f:03.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder [8086:2c99] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Target Address Decoder [8086:8086]
3f:03.4 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Test Registers [8086:2c9c] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Test Registers [8086:8086]
3f:04.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers [8086:2ca0] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Control Registers [8086:8086]
3f:04.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers [8086:2ca1] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Address Registers [8086:8086]
3f:04.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers [8086:2ca2] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Rank Registers [8086:8086]
3f:04.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers [8086:2ca3] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 0 Thermal Control Registers [8086:8086]
3f:05.0 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers [8086:2ca8] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Control Registers [8086:8086]
3f:05.1 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers [8086:2ca9] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Address Registers [8086:8086]
3f:05.2 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers [8086:2caa] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Rank Registers [8086:8086]
3f:05.3 Host bridge [0600]: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers [8086:2cab] (rev 04)
        Subsystem: Intel Corporation Core Processor Integrated Memory Controller Channel 1 Thermal Control Registers [8086:8086]


$ lsusb
Bus 002 Device 003: ID 1ea7:0064 SHARKOON Technologies GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0ac8:c342 Z-Star Microelectronics Corp. WebCam SCB-1900N
Bus 001 Device 003: ID 0a5c:219b Broadcom Corp. Bluetooth 2.1 Device
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


$ dpkg -l | grep firmw
ii  firmware-linux-free                           20200122-1                      all          Binary firmware for various drivers in the Linux kernel

$ journalctl -b -p err
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
-- Journal begins at Tue 2021-09-14 19:25:33 MSK, ends at Mon 2021-09-20 01:23:49 MSK. --
сен 20 01:03:10 note pipewire[872]: Failed to receive portal pid: org.freedesktop.DBus.Error.NameHasNoOwner: Could not get PID of name 'org.f>

Eyer

Мой тоже не хотел уходить в спящий режим - устанавливал bullseye, пока был ещё testing. Пару дней назад переустановил, сейчас проблем с этим не наблюдаю.
Debian Bookworm XFCE
Можно на ты

dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

arn

sudo cat /etc/apt/sources.list
# deb cdrom:[Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main

#deb cdrom:[Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main

deb http://deb.debian.org/debian/ bullseye main
deb-src http://deb.debian.org/debian/ bullseye main

deb http://security.debian.org/debian-security bullseye-security main contrib
deb-src http://security.debian.org/debian-security bullseye-security main contrib


# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main contrib
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib

arn

wine нормально не работает..
правда что, не Bullseye а Bullshit какой-то
перейду обратно на 10ю
10.10 качну и поставлю...

$ wine --version             
it looks like wine32 is missing, you should install it.
as root, please execute "apt-get install wine32"
wine-5.0.3 (Debian 5.0.3-3)

$ sudo apt-get install wine32
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Чтение информации о состоянии... Готово         
Пакет wine32 недоступен, но упомянут в списке зависимостей другого
пакета. Это может означать, что пакет отсутствует, устарел или
доступен из источников, не упомянутых в sources.list
Однако следующие пакеты могут его заменить:
  libwine
E: Для пакета «wine32» не найден кандидат на установку




qupl


Susumo

Цитата: arn от 25 сентября 2021, 15:14:52Пакет wine32 недоступен, но упомянут в списке зависимостей другого
Архитектура х86 добавлена?

arn

Цитата: Susumo от 28 сентября 2021, 07:18:20
Цитата: arn от 25 сентября 2021, 15:14:52Пакет wine32 недоступен, но упомянут в списке зависимостей другого
Архитектура х86 добавлена?
не дало добавить.
выдало ошибку, насколько помню..
буду менять на 10.10 этот булщит

arn

Цитата: qupl от 26 сентября 2021, 05:24:25
Не подключены ветки contrib (частично) и non-free.
врядли это влияет.
я до того попробовал просто обновить ядро, сидя на версии деб 10.9
как только ядро стало 5.10, так сразу перестал работать сон/гибернация

arn

Цитата: qupl от 26 сентября 2021, 05:24:25
Не подключены ветки contrib (частично) и non-free.
то что я привел, это практически стоковый соурсес-лист
после установки начисто дебиан11