On Tue, 13 Apr 2021 02:06:05 +0200
aitor <aitor_czr@???> wrote:
> Hi Tito,
>
> On 12/4/21 21:35, tito via Dng wrote:
> > Hi,
> > while trying and retrying buster to beowulf migrations I've seen
> > this error pop up a few times. Could this be considered a bug?
> >
> > Setting up desktop-base (1:3.0) ...
> > ... setting up desktop-base
> > ... setting up desktop-base
> > /var/lib/dpkg/info/desktop-base.postinst: line 30: [: preferred:
> > integer expression expected
>
> Can you give us the content of the following files [*]:
>
> - /sys/class/drm/card*/modes
>
> - /sys/class/graphics/fb*/modes
>
> In the first case, you'll find values like:
>
> 1920x1080
> 1680x1050
> 1280x1024
>
> ...
>
> As a result, the variable ${high} in the line nº30 of the postinst
> script:
>
> if [ ${high} -ge 720 ]; then
>
> will receive an integer (as expected), that is:
>
> var="1920x1080"
> high=${var##*x} -----> 1080
>
> In the second case, you'll find values like:
>
> U:1920x1080p-0
>
> and they'll be processed in a different way, getting an integeras a
> result:
>
> var="U:1920x1080p-0"
> var=${var##*:}
> var=${var%%p-*}
> high=${var##*x} -----> 1080
>
> Aitor.
>
> [*] These files will be taken in consideration only when the content
> of the corresponding "status" files located in
> each directory matches "connected".
>
>
Hi,
ls -laf /sys/class/drm/card0*
/sys/class/drm/card0:
. card0-Virtual-6 power card0-Virtual-7 card0-Virtual-3
.. card0-Virtual-4 dev card0-Virtual-5 card0-Virtual-1
uevent card0-Virtual-2 device subsystem card0-Virtual-8
/sys/class/drm/card0-Virtual-1:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-2:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-3:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-4:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-5:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-6:
. .. uevent enabled power dpms device subsystem status edid modes
/sys/class/drm/card0-Virtual-7:
. .. uevent enabled power dpms device subsystem status edid modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-1/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-2/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-3/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-4/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-5/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-6/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-7/modes
-r--r--r-- 1 root root 4096 Apr 13 07:50 /sys/class/drm/card0-Virtual-8/modes
cat /sys/class/drm/card0-Virtual-1/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-2/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-3/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-4/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-5/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-6/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-7/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-8/modes
preferred
2560x1600
1920x1440
1856x1392
1792x1344
1920x1200
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x800
1152x864
1280x768
1024x768
800x600
640x480
cat /sys/class/drm/card0-Virtual-1/status
connected
cat /sys/class/drm/card0-Virtual-2/status
disconnected
cat /sys/class/drm/card0-Virtual-3/status
disconnected
cat /sys/class/drm/card0-Virtual-4/status
disconnected
cat /sys/class/drm/card0-Virtual-5/status
disconnected
cat /sys/class/drm/card0-Virtual-6/status
disconnected
cat /sys/class/drm/card0-Virtual-7/status
disconnected
cat /sys/class/drm/card0-Virtual-8/status
disconnected
ls -la /sys/class/graphics/fb*/modes
-rw-r--r-- 1 root root 4096 Apr 13 08:01 /sys/class/graphics/fb0/modes
cat /sys/class/graphics/fb*/modes
U:800x600p-0
Ciao,
Tito