Package: file
Version: 1:5.44-3
Severity: normal

Dear Maintainer,

UEFI systems make the boot logo accessible for reading at the path 
/sys/firmware/acpi/bgrt/image

The file can be displayed directly using for example:
$ feh /sys/firmware/acpi/bgrt/image

Strange things happen when you copy this file elsewhere:
$ cp /sys/firmware/acpi/bgrt/image /tmp/image

and then run `file` on it:
$ file /sys/firmware/acpi/bgrt/image /tmp/image
/sys/firmware/acpi/bgrt/image: data
/tmp/image:                    PC bitmap, Windows 3.x format, 434 x 432 x 24, 
image size 565056, cbSize 565110, bits offset 54

If you diff those files, they are the same:
$ diff -s /sys/firmware/acpi/bgrt/image /tmp/image
Files /sys/firmware/acpi/bgrt/image and /tmp/image are identical

If you use the -d flag for `file`, it will produce internal debugging 
information:
$ file -d /sys/firmware/acpi/bgrt/image >/tmp/sys-firmware-acpi-bgrt-image.log 
2>&1
$ file -d /tmp/image >/tmp/tmp-image.log 2>&1

If you then diff those logfiles, you can notice that that 
/tmp/sys-firmware-acpi-bgrt-image.log only uses nbytes=4096, whereas 
/tmp/tmp-image.log uses nbytes=565110. /tmp/sys-firmware-acpi-bgrt-image.log 
also fails to match the bitmap for unknown reason.

Please forward this bug upstream if it's not only on debian, thank you.

-- System Information:
Debian Release: 12.0
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages file depends on:
ii  libc6      2.36-9
ii  libmagic1  1:5.44-3

file recommends no packages.

file suggests no packages.

-- no debconf information

Reply via email to