Solved desktop becomes slow and weird

Hi, need some help.

My xfce desktop on Thinkpad T430 becomes slow and weird after a series of routine upgrades:
freebsd-update
pkg update
pkg upgrade
portsnap update


The upgrades went ok, as far as I remember. Now entering desktop and opening applications are slow. And it doesn't show the contents in ~/Desktop, wallpaper doesn't get loaded, no menu pops up on mouse right click.
Not sure if it is nvidia driver related, but I notice that during booting, loading nvidia module takes about 10 seconds, which I've never seen before, see attached pic. While in /etc/rc.conf, I have nvidia-modeset loaded, no nvidia.

Appreciated.
 

Attachments

  • boot.jpg
    boot.jpg
    283 KB · Views: 141
You can always try to run the following easy
Code:
pkg update -f
pkg upgrade -f
pkg install -f nvidia-driver
Try first a simple desktop like openbox.
 
Hi, need some help.

My xfce desktop on Thinkpad T430 becomes slow and weird after a series of routine upgrades:
freebsd-update
pkg update
pkg upgrade
portsnap update


The upgrades went ok, as far as I remember. Now entering desktop and opening applications are slow. And it doesn't show the contents in ~/Desktop, wallpaper doesn't get loaded, no menu pops up on mouse right click.
Not sure if it is nvidia driver related, but I notice that during booting, loading nvidia module takes about 10 seconds, which I've never seen before, see attached pic. While in /etc/rc.conf, I have nvidia-modeset loaded, no nvidia.

Appreciated.
Can you send the hw-probe of your T430?
On my T430 xfce run smooth.
Here is my probe: https://bsd-hardware.info/?probe=a1517b13f6
 

Attachments

  • Screenshot from 2023-01-24 22-50-42.png
    Screenshot from 2023-01-24 22-50-42.png
    61.4 KB · Views: 96
For checking your harddisk health you can use sysutils/smartmontools.
As you mentioned this might not be the reason for the behavior you're experiencing but it's usually a good place to start as it's a low hanging fruit.
 
For checking your harddisk health you can use sysutils/smartmontools.
As you mentioned this might not be the reason for the behavior you're experiencing but it's usually a good place to start as it's a low hanging fruit.

Running smartctl gives several errors in the summary, but "SMART overall-health self-assessment test result: PASSED".
 
I also have problems with those Hitachi HD's that usually come with notebooks, the life span of those are quite short. I changed mine to ssd's.


Can you show the contents of /usr/local/etc/X11/xorg.conf.d/ files?

There I have driver-nvidia.conf, fonts.conf, modules.conf. I suppose you wanna see driver-nvidia.conf:
Code:
Section "Device"                                                                 
    Identifier  "NVIDIA Card"                                                   
    VendorName  "NVIDIA Corporation"                                             
    Driver      "nvidia"                                                         
    BusID        "PCI:1:0:0"
EndSection
 
Which errors would that be? Feel free to post the full smartctl output as a code block.

Here you go.
Code:
smartctl 7.3 2022-02-28 r5338 [FreeBSD 13.1-RELEASE-p3 amd64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, [URL="http://www.smartmontools.org"]www.smartmontools.org[/URL]

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar Z7K500
Device Model:     HITACHI HTS725050A7E630
Serial Number:    TF1500Y9HN9HXB
LU WWN Device Id: 5 000cca 662d752a3
Firmware Version: GH2ZB390
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database 7.3/5319
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Jan 24 23:21:45 2023 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)    Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever 
                    been run.
Total time to complete Offline 
data collection:         (   45) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine 
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      (  87) minutes.
SCT capabilities:            (0x003d)    SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   098   098   062    Pre-fail  Always       -       196609
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   242   242   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   096   096   000    Old_age   Always       -       7741
  5 Reallocated_Sector_Ct   0x0033   028   028   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   026   026   000    Old_age   Always       -       32665
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   096   096   000    Old_age   Always       -       6718
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       4294901900
193 Load_Cycle_Count        0x0012   034   034   000    Old_age   Always       -       668865
194 Temperature_Celsius     0x0002   142   142   000    Old_age   Always       -       42 (Min/Max 5/69)
196 Reallocated_Event_Count 0x0032   020   020   000    Old_age   Always       -       1998
197 Current_Pending_Sector  0x0022   068   068   000    Old_age   Always       -       936
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 8890 (device log contains only the most recent five errors)
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 8890 occurred at disk power-on lifetime: 32665 hours (1361 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 f8 b0 0a ef 07  Error: UNC at LBA = 0x07ef0ab0 = 133106352

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 b0 f0 47 45 40 00      01:52:20.186  READ FPDMA QUEUED
  60 00 a8 08 43 45 40 00      01:52:20.013  READ FPDMA QUEUED
  61 b0 a0 48 ce 8e 40 00      01:52:19.909  WRITE FPDMA QUEUED
  61 b0 98 b0 5b 8e 40 00      01:52:19.901  WRITE FPDMA QUEUED
  61 08 90 88 6a 40 40 00      01:52:19.894  WRITE FPDMA QUEUED

Error 8889 occurred at disk power-on lifetime: 32665 hours (1361 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 80 b8 a7 42 08  Error: WP at LBA = 0x0842a7b8 = 138586040

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 30 30 38 cf c6 40 00      01:48:29.996  WRITE FPDMA QUEUED
  61 08 28 20 cf c6 40 00      01:48:29.996  WRITE FPDMA QUEUED
  60 00 20 b0 ec 58 40 00      01:48:29.976  READ FPDMA QUEUED
  61 08 18 98 b9 41 40 00      01:48:29.860  WRITE FPDMA QUEUED
  60 00 10 80 a8 42 40 00      01:48:29.826  READ FPDMA QUEUED

Error 8888 occurred at disk power-on lifetime: 32665 hours (1361 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 50 f1 7a 0e  Error: UNC at LBA = 0x0e7af150 = 242938192

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 10 68 c8 0f b1 40 00      01:36:29.484  READ FPDMA QUEUED
  60 00 60 b8 bd 8a 40 00      01:36:29.323  READ FPDMA QUEUED
  60 00 58 00 d9 c5 40 00      01:36:29.181  READ FPDMA QUEUED
  61 08 50 c8 90 41 40 00      01:36:28.946  WRITE FPDMA QUEUED
  60 00 48 78 1b ba 40 00      01:36:28.822  READ FPDMA QUEUED

Error 8887 occurred at disk power-on lifetime: 32665 hours (1361 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 f8 78 f4 a5 04  Error: UNC at LBA = 0x04a5f478 = 77984888

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 50 60 6e 77 40 00      01:36:06.724  READ FPDMA QUEUED
  60 00 48 70 f1 a5 40 00      01:36:06.724  READ FPDMA QUEUED
  60 00 40 40 24 2f 40 00      01:36:06.724  READ FPDMA QUEUED
  60 00 38 08 08 b1 40 00      01:36:06.723  READ FPDMA QUEUED
  60 00 30 08 04 b1 40 00      01:36:06.723  READ FPDMA QUEUED

Error 8886 occurred at disk power-on lifetime: 32665 hours (1361 days + 1 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 a0 78 61 08  Error: UNC at LBA = 0x086178a0 = 140605600

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 30 90 48 52 40 00      01:21:04.162  READ FPDMA QUEUED
  61 08 28 00 59 41 40 00      01:21:04.072  WRITE FPDMA QUEUED
  60 00 20 a0 78 61 40 00      01:21:04.040  READ FPDMA QUEUED
  60 00 18 70 68 9b 40 00      01:21:04.040  READ FPDMA QUEUED
  60 00 10 70 65 9b 40 00      01:21:04.040  READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Vendor (0x50)       Completed without error       00%     17434         -
# 2  Short offline       Completed without error       00%     17434         -
# 3  Vendor (0x50)       Completed without error       00%     11493         -
# 4  Short offline       Completed without error       00%     11493         -
# 5  Vendor (0x50)       Completed without error       00%     11209         -
# 6  Short offline       Completed without error       00%     11209         -
# 7  Vendor (0x50)       Completed without error       00%      6003         -
# 8  Short offline       Completed without error       00%      6003         -
# 9  Vendor (0x50)       Completed without error       00%      5700         -
#10  Short offline       Completed without error       00%      5700         -
#11  Vendor (0x50)       Completed without error       00%      5303         -
#12  Short offline       Completed without error       00%      5303         -
#13  Vendor (0x50)       Completed without error       00%      2479         -
#14  Short offline       Completed without error       00%      2479         -
#15  Vendor (0x50)       Completed without error       00%      2284         -
#16  Short offline       Completed without error       00%      2284         -
#17  Vendor (0x50)       Completed without error       00%      1006         -
#18  Short offline       Completed without error       00%      1006         -
#19  Vendor (0x50)       Completed without error       00%       279         -
#20  Short offline       Completed without error       00%       279         -
#21  Vendor (0x50)       Completed without error       00%        11         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
 

Attachments

Disk is getting fairly old now, 32665 (power on hours), that's about 3 3/4 year. It also appears to recently gotten some DMA errors, that's usually not a good sign. I'd start diligently making backups of anything important that's on there. As it might just stop functioning in the near future.
 
Get a brand-new SSD... Even 256GB or 512GB capacity is relatively inexpensive these days, and quite reliable. I have a laptop from 2012, the SSD inside has outlasted the (very good, I might add) battery. And stick with well-known brands like Samsung, SanDisk, Toshiba, WesternDigital, Seagate, and the like. No-name stuff may be cheaper, but it will die faster.
 
Back
Top