Debian 10 occasionally freezes after update from Debian 9

Getting your soundcard to work, using Debian on non-i386 hardware, etc

Debian 10 occasionally freezes after update from Debian 9

Postby melfn » 2020-05-21 09:48

I'm posting this topic here because I think it's an hardware/driver problem, feel free to move it to another board.

Hi all, recently I updated Debian 9 to Debian 10 on my dell laptop and now I'm experiencing (apparently) random freezes. The computer just stops working and all I can do is reboot it.
I searched the web and I found many solutions but no one worked, also because the hardware mentioned in the solutions was different than mine. Also I have another different laptop in which I also updated Debian 9 to Debian 10 and it works flawlessly.

Can someone help me to solve this problem?

I attach a report of my hardware and software settings at the end of this topic. If you need any other information just ask, I will provide them. Otherwise maybe you can suggest a tool to monitor the system load/processes/RAM usage and other parameters or a command to run such that I can tell exactly what happened just before the system crashed.

Thank you in advance.

Code: Select all
Script started on 2020-05-21 11:58:32+02:00 [TERM="xterm-256color" TTY="/dev/pts/4" COLUMNS="150" LINES="35"]
root@mirandolina:~# lsb_release -a
No LSB modules are available.
Distributor ID:   Debian
Description:   Debian GNU/Linux 10 (buster)
Release:   10
Codename:   buster
root@mirandolina:~# uname -a
Linux mirandolina 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux
root@mirandolina:~# lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
Address sizes:       39 bits physical, 48 bits virtual
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  2
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               78
Model name:          Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
Stepping:            3
CPU MHz:             505.578
CPU max MHz:         3100,0000
CPU min MHz:         400,0000
BogoMIPS:            5183.88
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            4096K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
root@mirandolina:~# lshw
mirandolina
    description: Laptop
    product: Inspiron 13-7359 (06FD)
    vendor: Dell Inc.
    serial: 1VY1B82
    width: 64 bits
    capabilities: smbios-2.8 dmi-2.8 smp vsyscall32
    configuration: boot=normal chassis=docking family=Inspiron sku=06FD uuid=44454C4C-5600-1059-8031-B1C04F423832
  *-core
       description: Motherboard
       product: 05VN9R
       vendor: Dell Inc.
       physical id: 0
       version: A00
       serial: /1VY1B82/CN7620662G000H/
     *-firmware
          description: BIOS
          vendor: Dell Inc.
          physical id: 0
          version: 1.20.0
          date: 05/15/2018
          size: 64KiB
          capacity: 12MiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
     *-cache:0
          description: L1 cache
          physical id: 3d
          slot: L1 Cache
          size: 64KiB
          capacity: 64KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-cache:1
          description: L1 cache
          physical id: 3e
          slot: L1 Cache
          size: 64KiB
          capacity: 64KiB
          capabilities: synchronous internal write-back instruction
          configuration: level=1
     *-cache:2
          description: L2 cache
          physical id: 3f
          slot: L2 Cache
          size: 512KiB
          capacity: 512KiB
          capabilities: synchronous internal write-back unified
          configuration: level=2
     *-cache:3
          description: L3 cache
          physical id: 40
          slot: L3 Cache
          size: 4MiB
          capacity: 4MiB
          capabilities: synchronous internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
          vendor: Intel Corp.
          physical id: 41
          bus info: cpu@0
          version: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 2403MHz
          capacity: 3100MHz
          width: 64 bits
          clock: 100MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
          configuration: cores=2 enabledcores=2 threads=4
     *-memory
          description: System Memory
          physical id: 42
          slot: System board or motherboard
          size: 8GiB
        *-bank
             description: SODIMM DDR3 Synchronous 1600 MHz (0,6 ns)
             product: HMT41GS6AFR8A-PB
             vendor: SK Hynix
             physical id: 0
             serial: 16121216
             slot: ChannelA-DIMM0
             size: 8GiB
             width: 64 bits
             clock: 1600MHz (0.6ns)
     *-pci
          description: Host bridge
          product: Skylake Host Bridge/DRAM Registers
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 08
          width: 32 bits
          clock: 33MHz
        *-display
             description: VGA compatible controller
             product: HD Graphics 520
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 07
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:276 memory:d0000000-d0ffffff memory:c0000000-cfffffff ioport:f000(size=64) memory:c0000-dffff
        *-generic:0
             description: Signal processing controller
             product: Skylake Processor Thermal Subsystem
             vendor: Intel Corporation
             physical id: 4
             bus info: pci@0000:00:04.0
             version: 08
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: driver=proc_thermal latency=0
             resources: irq:16 memory:d1120000-d1127fff
        *-usb
             description: USB controller
             product: Sunrise Point-LP USB 3.0 xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:275 memory:d1110000-d111ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 4.6.0-1-amd64 xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 4.06
                capabilities: usb-2.00
                configuration: driver=hub slots=12 speed=480Mbit/s
              *-usb:0
                   description: Human interface device
                   product: ST_SENSOR_HUB
                   vendor: STMicroelectronics
                   physical id: 4
                   bus info: usb@1:4
                   version: 0.37
                   serial: ST_SENSOR_HUB
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=12Mbit/s
              *-usb:1
                   description: Video
                   product: Integrated_Webcam_HD
                   vendor: CN0GNXH572487612B52JA02
                   physical id: 5
                   bus info: usb@1:5
                   version: 43.07
                   capabilities: usb-2.00
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:2
                   description: Mass storage device
                   product: USB2.0-CRW
                   vendor: Generic
                   physical id: 6
                   bus info: usb@1:6
                   logical name: scsi1
                   version: 77.11
                   serial: 20121112761000000
                   capabilities: usb-2.01 scsi emulated
                   configuration: driver=usb-storage maxpower=500mA speed=480Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: SD/MMC/MS PRO
                      vendor: Generic-
                      physical id: 0.0.0
                      bus info: scsi@1:0.0.0
                      logical name: /dev/sdb
                      version: 1.00
                      serial: 2012062914345300
                      size: 183GiB (196GB)
                      capabilities: removable
                      configuration: ansiversion=4 logicalsectorsize=512 sectorsize=512
                    *-medium
                         physical id: 0
                         logical name: /dev/sdb
                         size: 183GiB (196GB)
                         capabilities: partitioned partitioned:dos
                       *-volume
                            description: HPFS/NTFS partition
                            physical id: 1
                            logical name: /dev/sdb1
                            logical name: /media/ludovica/3230-3330
                            capacity: 183GiB
                            capabilities: primary
                            configuration: mount.fstype=fuseblk mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 state=mounted
              *-usb:3
                   description: Human interface device
                   product: Touchscreen
                   vendor: ELAN
                   physical id: 7
                   bus info: usb@1:7
                   version: 20.15
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=12Mbit/s
              *-usb:4
                   description: Bluetooth wireless interface
                   vendor: Intel Corp.
                   physical id: 8
                   bus info: usb@1:8
                   version: 0.01
                   capabilities: bluetooth usb-2.00
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 4.6.0-1-amd64 xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 4.06
                capabilities: usb-3.00
                configuration: driver=hub slots=6 speed=5000Mbit/s
        *-generic:1
             description: Signal processing controller
             product: Sunrise Point-LP Serial IO I2C Controller #0
             vendor: Intel Corporation
             physical id: 15
             bus info: pci@0000:00:15.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:16 memory:d1137000-d1137fff
        *-generic:2
             description: Signal processing controller
             product: Sunrise Point-LP Serial IO I2C Controller #1
             vendor: Intel Corporation
             physical id: 15.1
             bus info: pci@0000:00:15.1
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:17 memory:d1136000-d1136fff
        *-communication
             description: Communication controller
             product: Sunrise Point-LP CSME HECI #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:278 memory:d1135000-d1135fff
        *-sata
             description: SATA controller
             product: Sunrise Point-LP SATA Controller [AHCI mode]
             vendor: Intel Corporation
             physical id: 17
             bus info: pci@0000:00:17.0
             logical name: scsi0
             version: 21
             width: 32 bits
             clock: 66MHz
             capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
             configuration: driver=ahci latency=0
             resources: irq:277 memory:d1130000-d1131fff memory:d1134000-d11340ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:d1133000-d11337ff
           *-disk
                description: ATA Disk
                product: SAMSUNG SSD PM87
                physical id: 0.0.0
                bus info: scsi@0:0.0.0
                logical name: /dev/sda
                version: 3D0Q
                serial: S1ZTNXAG905075
                size: 238GiB (256GB)
                capabilities: gpt-1.00 partitioned partitioned:gpt
                configuration: ansiversion=5 guid=6d21a840-f77c-42ed-907c-9ad1c6489952 logicalsectorsize=512 sectorsize=512
              *-volume:0 UNCLAIMED
                   description: Windows FAT volume
                   vendor: MSDOS5.0
                   physical id: 1
                   bus info: scsi@0:0.0.0,1
                   version: FAT32
                   serial: 2657-857d
                   size: 495MiB
                   capacity: 499MiB
                   capabilities: boot fat initialized
                   configuration: FATs=2 filesystem=fat label=ESP name=EFI
              *-volume:1
                   description: reserved partition
                   vendor: Windows
                   physical id: 2
                   bus info: scsi@0:0.0.0,2
                   logical name: /dev/sda2
                   serial: 368c4888-3c81-458f-bfeb-c931211bfd0b
                   capacity: 127MiB
                   capabilities: nofs
                   configuration: name=Micr
              *-volume:2
                   description: Windows NTFS volume
                   vendor: Windows
                   physical id: 3
                   bus info: scsi@0:0.0.0,3
                   logical name: /dev/sda3
                   version: 3.1
                   serial: d60fb8cd-fc11-3e4c-be24-7fe2ac7466e3
                   size: 75GiB
                   capacity: 75GiB
                   capabilities: ntfs initialized
                   configuration: clustersize=4096 created=2016-02-16 21:07:32 filesystem=ntfs label=OS state=clean
              *-volume:3
                   description: EXT4 volume
                   vendor: Linux
                   physical id: 4
                   bus info: scsi@0:0.0.0,4
                   logical name: /dev/sda4
                   logical name: /
                   version: 1.0
                   serial: 108a07db-0b04-468a-b342-7ee14b73ac66
                   size: 48GiB
                   capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                   configuration: created=2016-02-29 01:16:34 filesystem=ext4 lastmountpoint=/ modified=2020-05-21 09:04:23 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2020-05-21 09:04:23 name=OS state=mounted
              *-volume:4
                   description: EXT4 volume
                   vendor: Linux
                   physical id: 5
                   bus info: scsi@0:0.0.0,5
                   logical name: /dev/sda5
                   logical name: /home
                   version: 1.0
                   serial: a98afb1b-32a0-4f2f-a959-4d497797ab14
                   size: 102GiB
                   capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                   configuration: created=2016-02-29 01:16:34 filesystem=ext4 lastmountpoint=/home modified=2020-05-21 09:04:24 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2020-05-21 09:04:24 name=HOME state=mounted
              *-volume:5
                   description: Windows NTFS volume
                   vendor: Windows
                   physical id: 6
                   bus info: scsi@0:0.0.0,6
                   logical name: /dev/sda6
                   version: 3.1
                   serial: 4c60-4669
                   size: 10GiB
                   capacity: 11GiB
                   capabilities: boot precious ntfs initialized
                   configuration: clustersize=4096 created=2016-02-16 22:02:42 filesystem=ntfs label=Image state=clean
        *-pci
             description: PCI bridge
             product: Sunrise Point-LP PCI Express Root Port #5
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:274 memory:d1000000-d10fffff
           *-network
                description: Wireless interface
                product: Wireless 3165
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: wlp1s0
                version: 79
                serial: 08:d4:0c:d9:1b:79
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=4.6.0-1-amd64 firmware=25.30.13.0 ip=192.168.1.231 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
                resources: irq:279 memory:d1000000-d1001fff
        *-isa
             description: ISA bridge
             product: Sunrise Point-LP LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 21
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-memory UNCLAIMED
             description: Memory controller
             product: Sunrise Point-LP PMC
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 21
             width: 32 bits
             clock: 33MHz (30.3ns)
             configuration: latency=0
             resources: memory:d112c000-d112ffff
        *-multimedia
             description: Audio device
             product: Sunrise Point-LP HD Audio
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 21
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:280 memory:d1128000-d112bfff memory:d1100000-d110ffff
        *-serial UNCLAIMED
             description: SMBus
             product: Sunrise Point-LP SMBus
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: pci@0000:00:1f.4
             version: 21
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:d1132000-d11320ff ioport:f040(size=32)
     *-pnp00:00
          product: PnP device PNP0c02
          physical id: 1
          capabilities: pnp
          configuration: driver=system
     *-pnp00:01
          product: PnP device PNP0b00
          physical id: 2
          capabilities: pnp
          configuration: driver=rtc_cmos
     *-pnp00:02
          product: PnP device INT3f0d
          vendor: Interphase Corporation
          physical id: 3
          capabilities: pnp
          configuration: driver=system
     *-pnp00:03
          product: PnP device PNP0303
          physical id: 4
          capabilities: pnp
          configuration: driver=i8042 kbd
     *-pnp00:04
          product: PnP device DLL06fd
          vendor: Dell Inc
          physical id: 5
          capabilities: pnp
          configuration: driver=i8042 aux
     *-pnp00:05
          product: PnP device PNP0c02
          physical id: 6
          capabilities: pnp
          configuration: driver=system
     *-pnp00:06
          product: PnP device PNP0c02
          physical id: 7
          capabilities: pnp
          configuration: driver=system
     *-pnp00:07
          product: PnP device PNP0c02
          physical id: 8
          capabilities: pnp
          configuration: driver=system
     *-pnp00:08
          product: PnP device PNP0c02
          physical id: 9
          capabilities: pnp
          configuration: driver=system
     *-pnp00:09
          product: PnP device PNP0c02
          physical id: a
          capabilities: pnp
          configuration: driver=system
  *-battery
       product: DELL 4K8YH5A
       vendor: Sanyo
       physical id: 1
       version: 10/07/2015
       serial: 044E
       slot: Sys. Battery Bay
       capacity: 45140mWh
       configuration: voltage=10,8V
root@mirandolina:~# lspci
00:00.0 Host bridge: Intel Corporation Skylake Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 08)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 Network controller: Intel Corporation Wireless 3165 (rev 79)
root@mirandolina:~# exit

Script done on 2020-05-21 11:59:38+02:00 [COMMAND_EXIT_CODE="0"]
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby sunrat » 2020-05-21 10:58

Set up journalctl so you can read the journal log. You're probably on the right track thinking it's hardware but you need more info to narrow it down.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3244
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Debian 10 occasionally freezes after update from Debian

Postby melfn » 2020-05-21 11:57

sunrat wrote:Set up journalctl so you can read the journal log. You're probably on the right track thinking it's hardware but you need more info to narrow it down.


Thank you for the reply.
I set up journalctl such that it saves the logs of the previous boots on the disk using the procedure I found on askubuntu:

Code: Select all
# mkdir -p /var/log/journal
# systemd-tmpfiles --create --prefix /var/log/journal


in /etc/systemd/journald.conf I added the line/changed the default value of the Storage option:
Code: Select all
Storage=persistent


Now I can see the logs of the previous boots:

Code: Select all
journalctl --list-boots
journalctl -b-1


And I set up a cronjob that runs every Sunday cleaning the journal entries older than a week:
Code: Select all
0 0 * * sun journalctl --vacuum-time=7d


Now let's wait for the next crash (it should take a couple of days), thank you so much for now!
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby sunrat » 2020-05-21 14:03

I find the most useful command is
Code: Select all
journalctl -b -1 -p 3


I'm a bit dubious about the "procedure from askubuntu". All you need to do is create the directory /var/log/journal to have a persistent journal. "Storage=auto" is the default which will save the journal as long as the directory is there. I'm not sure that "# systemd-tmpfiles --create --prefix /var/log/journal" actually does anything.
Journal is very easy to use and one of the better features of systemd. It's worth knowing its basics.
Also I set "SystemMaxUse=50M" to limit the journal size rather than running a separate cron job for vacuum.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3244
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Debian 10 occasionally freezes after update from Debian

Postby Head_on_a_Stick » 2020-05-21 15:04

melfn wrote:
Code: Select all
root@mirandolina:~# uname -a
Linux mirandolina 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux

^ Where did you get that kernel from? Try the buster kernel instead and see if things work better with that.

And be sure to consult the official release notes, they contain a detailed guide for upgrades from stretch to buster.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian 10 occasionally freezes after update from Debian

Postby melfn » 2020-05-21 16:56

sunrat wrote:I find the most useful command is
Code: Select all
journalctl -b -1 -p 3


I'm a bit dubious about the "procedure from askubuntu". All you need to do is create the directory /var/log/journal to have a persistent journal. "Storage=auto" is the default which will save the journal as long as the directory is there. I'm not sure that "# systemd-tmpfiles --create --prefix /var/log/journal" actually does anything.
Journal is very easy to use and one of the better features of systemd. It's worth knowing its basics.
Also I set "SystemMaxUse=50M" to limit the journal size rather than running a separate cron job for vacuum.


Thank you for the reply, I didn't notice that the default for Storage was auto. as for the

Code: Select all
systemd-tmpfiles --create --prefix /var/log/journal


command, I read in the manual that it just sets ownership, access mode and security labels to the directory.

Head_on_a_Stick wrote:
melfn wrote:
Code: Select all
root@mirandolina:~# uname -a
Linux mirandolina 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux

^ Where did you get that kernel from? Try the buster kernel instead and see if things work better with that.

And be sure to consult the official release notes, they contain a detailed guide for upgrades from stretch to buster.


Thank you for your answer too, it is very useful.

I took that kernel from nowhere in particular: it came with Debian 9 when I installed it back in 2017 (Debian 9 was the testing distribution at that time if I remember well). Now I realize that I never updated the kernel all this time and maybe that's the cause for the random freezings.
I always update the system through apt but this doesn't upgrade the kernel unless I install the packages for the newer version (my bad); also I followed this guide to upgrade Debian 10 from Debian 9 --not sure why it didn't update the kernel too.

Unfortunately now I have some important work to do on that laptop so I cannot take the risk of upgrading the kernel.
I'll let you know soon, thank you again for now.
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby Head_on_a_Stick » 2020-05-21 17:14

melfn wrote:I always update the system through apt but this doesn't upgrade the kernel unless I install the packages for the newer version

The kernel will be kept updated as long as you have the linux-image-amd64 metapackage installed, that always lists the most recent kernel as a dependency.

melfn wrote:now I have some important work to do on that laptop so I cannot take the risk of upgrading the kernel

Leaving your machine running an outdated kernel with known vulnerabilities is far more risky than updating to the latest stable kernel version.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian 10 occasionally freezes after update from Debian

Postby melfn » 2020-05-22 07:57

Head_on_a_Stick wrote:
melfn wrote:I always update the system through apt but this doesn't upgrade the kernel unless I install the packages for the newer version

The kernel will be kept updated as long as you have the linux-image-amd64 metapackage installed, that always lists the most recent kernel as a dependency.



I don't have it, that's why Debian never updated the kernel in these years.


melfn wrote:now I have some important work to do on that laptop so I cannot take the risk of upgrading the kernel

Leaving your machine running an outdated kernel with known vulnerabilities is far more risky than updating to the latest stable kernel version.


Actually I didn't meant "risk" in terms of vulnerability.
This laptop is a top-notch one and it has always had issues with the Debian installation (mostly because of the proprietary wifi and graphics drivers I think). When I bought it I first tried to install Ubuntu but it didn't work. Then I installed Debian 8 (at that time the Stable distribution) but it didn't see the wireless card, so I switched to Debian 9 (testing). It only worked from the command line but at least I could see the wireless card so I connected from the command line and installed the desktop environment. When I rebooted the wireless card didn't work again, so I had to install the (proprietary) drivers by downloading them from another computer and transferring with an USB stick.
A few weeks ago I upgraded to Debian 10 and after rebooting (guess what) the wireless didn't work so I had to fix it again.

You see, this is my situation: if I upgrade the kernel now I really don't know if it my laptop will work and I'm not sure I can fix it again (Installing Debian 9 with a different kernel and transferring the packages with an USB stick and all the other stuff).
I prefer by far keeping the system as it is with all the random freezings and the vulnerabilities as I have done all this time.

I will upgrade the kernel when I finish this work, I'm positive that this will solve the freezing problems.
Thank you so much for now, I will let you know
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby arzgi » 2020-05-22 14:47

melfn wrote:.
This laptop is a top-notch one and it has always had issues with the Debian installation (mostly because of the proprietary wifi and graphics drivers I think). When I bought it I first tried to install Ubuntu but it didn't work. Then I installed Debian 8 (at that time the Stable distribution) but it didn't see the wireless card, so I switched to Debian 9 (testing). It only worked from the command line but at least I could see the wireless card so I connected from the command line and installed the desktop environment. When I rebooted the wireless card didn't work again, so I had to install the (proprietary) drivers by downloading them from another computer and transferring with an USB stick.
A few weeks ago I upgraded to Debian 10 and after rebooting (guess what) the wireless didn't work so I had to fix it again.


You seem to know what's the problem, and found a temporal way to correct.

Pretty great % of the recent posts are from wifi or display problems. In most cases you need to enable non-free, and install needed firmware or microcode.

Code: Select all
$ aptitude search microcode
i A amd64-microcode               - Processor microcode firmware for AMD CP
p   amd64-microcode:i386          - Processor microcode firmware for AMD CP
i   intel-microcode               - Processor microcode firmware for Intel
p   intel-microcode:i386          - Processor microcode firmware for Intel
p   microcode.ctl                 - Intel IA32/IA64 CPU Microcode Utility (
p   microcode.ctl:i386            - Intel IA32/IA64 CPU Microcode Utility (

$ aptitude search firmware
p   alsa-firmware-loaders         - ALSA software loaders for specific hard
p   alsa-firmware-loaders:i386    - ALSA software loaders for specific hard
p   atmel-firmware                - Firmware for Atmel at76c50x wireless ne
v   bladerf-firmware              -                                       
v   bladerf-firmware:i386         -                                       
p   bladerf-firmware-fx3          - nuand bladeRF firmware downloader (FX3)
p   bladerf-firmware-fx3:i386     - nuand bladeRF firmware downloader (FX3)
p   bluez-firmware                - Firmware for Bluetooth devices         
p   dahdi-firmware-nonfree        - DAHDI non-free firmware               
p   dns323-firmware-tools         - build and manipulate firmware images fo
p   expeyes-firmware-dev          - hardware & software framework for devel
p   firmware-adi                  - Binary firmware for Analog Devices Inc.
i A firmware-amd-graphics         - Binary firmware for AMD/ATI graphics ch
v   firmware-amd-graphics:i386    -                                       
p   firmware-ath9k-htc            - QCA ath9k-htc Firmware                 
p   firmware-ath9k-htc-dbgsym     - QCA ath9k-htc Firmware ELF file       
p   firmware-atheros              - Binary firmware for Atheros wireless ca
p   firmware-b43-installer        - firmware installer for the b43 driver 
p   firmware-b43legacy-installer  - firmware installer for the b43legacy dr
p   firmware-bnx2                 - Binary firmware for Broadcom NetXtremeI
p   firmware-bnx2x                - Binary firmware for Broadcom NetXtreme
p   firmware-brcm80211            - Binary firmware for Broadcom/Cypress 80
p   firmware-cavium               - Binary firmware for Cavium Ethernet ada
i   firmware-intel-sound          - Binary firmware for Intel sound DSPs   
p   firmware-intelwimax           - Binary firmware for Intel WiMAX Connect
p   firmware-ipw2x00              - Binary firmware for Intel Pro Wireless
p   firmware-ivtv                 - Binary firmware for iTVC15-family MPEG
p   firmware-iwlwifi              - Binary firmware for Intel Wireless card
p   firmware-libertas             - Binary firmware for Marvell wireless ca
i   firmware-linux                - Binary firmware for various drivers in
i A firmware-linux-free           - Binary firmware for various drivers in
v   firmware-linux-free:i386      -                                       
i A firmware-linux-nonfree        - Binary firmware for various drivers in
p   firmware-microbit-micropython - MicroPython runtime for the BBC micro:b
p   firmware-microbit-micropython - micro:bit MicroPython runtime downloade
p   firmware-microbit-micropython - MicroPython runtime for the BBC micro:b
i A firmware-misc-nonfree         - Binary firmware for various drivers in
v   firmware-misc-nonfree:i386    -                                       
p   firmware-myricom              - Binary firmware for Myri-10G Ethernet a
p   firmware-netronome            - Binary firmware for Netronome network a
p   firmware-netxen               - Binary firmware for QLogic Intelligent
p   firmware-qcom-media           - Binary firmware for Qualcomm graphics/v
p   firmware-qlogic               - Binary firmware for QLogic HBAs       
p   firmware-ralink               - Binary firmware for Ralink wireless car
p   firmware-realtek              - Binary firmware for Realtek wired/wifi/
p   firmware-samsung              - Binary firmware for Samsung MFC video c
p   firmware-siano                - Binary firmware for Siano MDTV receiver
p   firmware-ti-connectivity      - Binary firmware for TI Connectivity wif
p   firmware-zd1211               - binary firmware for the zd1211rw wirele
p   grub-firmware-qemu            - GRUB firmware image for QEMU           
p   grub-firmware-qemu:i386       - GRUB firmware image for QEMU           
p   hdmi2usb-fx2-firmware         - FX2 firmware for hdmi2usb board develop
p   isight-firmware-tools         - tools for dealing with Apple iSight fir
p   isight-firmware-tools:i386    - tools for dealing with Apple iSight fir
v   libertas-firmware             -                                       
p   midisport-firmware            - Firmware loader for M-Audio's MidiSport
p   nxt-firmware                  - Improved firmware for LEGO Mindstorms N
p   sigrok-firmware-fx2lafw       - Firmware for Cypress FX2(LP) based logi
p   ubertooth-firmware            - Firmware for Ubertooth                 
v   ubertooth-firmware:i386       -                                       
p   ubertooth-firmware-source     - Source code for the Ubertooth firmware
v   zd1211-firmware
arzgi
 
Posts: 661
Joined: 2008-02-21 17:03
Location: Finland

Re: Debian 10 occasionally freezes after update from Debian

Postby Head_on_a_Stick » 2020-05-22 14:56

melfn wrote:if I upgrade the kernel now I really don't know if it my laptop will work and I'm not sure I can fix it again

The old kernel version will not be removed and will be available in the "Advanced Options" GRUB sub-menu.

And if you tell us which wireless card you actually have then we might be able to help you with that. I'm guessing it's a crappy Broadcom device but this is just a stab in the dark.

EDIT:but start a new thread for the wireless problem, it is off-topic here. Search for "Debian $name_of_wireless_device" first though, you probably just need to install the DKMS driver package so that the kernel module is rebuilt automatically when the kernel is updated.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian 10 occasionally freezes after update from Debian

Postby melfn » 2020-05-22 17:25

Head_on_a_Stick wrote:
melfn wrote:if I upgrade the kernel now I really don't know if it my laptop will work and I'm not sure I can fix it again

The old kernel version will not be removed and will be available in the "Advanced Options" GRUB sub-menu.

And if you tell us which wireless card you actually have then we might be able to help you with that. I'm guessing it's a crappy Broadcom device but this is just a stab in the dark.

EDIT:but start a new thread for the wireless problem, it is off-topic here. Search for "Debian $name_of_wireless_device" first though, you probably just need to install the DKMS driver package so that the kernel module is rebuilt automatically when the kernel is updated.


I already solved the wifi problem (twice!), I don't need support.
I don't want to upgrade the kernel because I don't know if I can solve it again with the new kernel. I have the feeling that if I update it the laptop will never boot again (: Or maybe upgrading the kernel will remove the microcode files I copied in the filesystem and the wifi will never work again, even with this kernel.
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby Bulkley » 2020-05-22 17:37

melfn wrote:I have the feeling that if I update it the laptop will never boot again . . . .


Please tell us you have good backup on another medium.
Bulkley
 
Posts: 6004
Joined: 2006-02-11 18:35

Re: Debian 10 occasionally freezes after update from Debian

Postby Head_on_a_Stick » 2020-05-22 17:39

melfn wrote:I don't want to upgrade the kernel because I don't know if I can solve it again with the new kernel. I have the feeling that if I update it the laptop will never boot again

For the second time: the old kernel will not be removed. You will still be able to boot with the old kernel if the new one doesn't work for you. And no, a kernel installation will not touch any files in /lib/firmware and anyway the µcode is baked into the (old) initramfs so it wouldn't matter if it did.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Debian 10 occasionally freezes after update from Debian

Postby melfn » 2020-05-22 17:57

Bulkley wrote:
melfn wrote:I have the feeling that if I update it the laptop will never boot again . . . .


Please tell us you have good backup on another medium.


I do.

Head_on_a_Stick wrote:
melfn wrote:I don't want to upgrade the kernel because I don't know if I can solve it again with the new kernel. I have the feeling that if I update it the laptop will never boot again

For the second time: the old kernel will not be removed. You will still be able to boot with the old kernel if the new one doesn't work for you.



I understood.


And no, a kernel installation will not touch any files in /lib/firmware and anyway the µcode is baked into the (old) initramfs so it wouldn't matter if it did.


How can you be so sure? Last time I updated the whole system (not the kernel) it removed all the microcode files and the wifi didn't work. I cannot be 100% sure that it will work after the upgrade (even with the old kernel).
melfn
 
Posts: 29
Joined: 2016-09-23 20:41

Re: Debian 10 occasionally freezes after update from Debian

Postby Head_on_a_Stick » 2020-05-22 18:16

melfn wrote:
And no, a kernel installation will not touch any files in /lib/firmware and anyway the µcode is baked into the (old) initramfs so it wouldn't matter if it did.


How can you be so sure?

Because the kernel package doesn't touch anything in /lib/firmware
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12650
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable