vbetool autoconfig fails to set 915resolution config

Bug #46176 reported by Joel Stanley
20
Affects Status Importance Assigned to Milestone
915resolution (Ubuntu)
Fix Released
Medium
Paul Sladen

Bug Description

Binary package hint: 915resolution

from output of dpkg when 'apt-get upgrading' to 915resolution ubuntu5:

Setting up 915resolution (0.5-1ubuntu5) ...
Installing new version of config file /etc/acpi/resume.d/49-915-resolution-set.s h ...

Configuration file `/etc/default/915resolution'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : background this process to examine the situation
 The default action is to keep your current version.
*** 915resolution (Y/I/N/O/D/Z) [default=N] ? i
Installing new version of config file /etc/default/915resolution ...
Installing new version of config file /etc/init.d/915resolution ...
Starting 915resolution: /usr/sbin/vbetool: Usage /usr/sbin/vbetool [[vbestate sa ve|restore]|[vbemode set|get]|[vgamode]|[dpms on|off|standby|suspend|reduced]|[p ost]|[vgastate on|off]|[vbefp panelid|panelsize|getbrightness|setbrightness|inve rt]]
*** Your 915resolution was not automatically configured! ***
Please read /usr/share/doc/915resolution/README.Debian then define
MODE, XRESO, and YRESO manually in /etc/default/915resolution or install 'vbetoo l'.
invoke-rc.d: initscript 915resolution, action "start" failed.

Revision history for this message
Bradley T Hughes (bhughes) wrote :

I can confirm this bug as well. X no longer starts in the correct resolution either. Setting the MODE, XRESO, and YRESO explicitly in /etc/default/915resolution still works of course.

The vbetool error mentioned comes from the fact that /etc/init.d/915resolution runs 'vbetool vbecall panelsize'. There is not argument called vbecall. The proper way to query the panel size is 'vbetool vbefp panelsize'.

However, fixing /etc/init.d/915resolution to call vbetool properly still doesn't fix the problem.

Revision history for this message
Michel D'HOOGE (michel-dhooge) wrote :

I got the same result:
$ sudo /etc/init.d/915resolution start
Starting 915resolution: /usr/sbin/vbetool: Usage /usr/sbin/vbetool...or install 'vbetool'.

I do have the latest version (0.6-1) installed.

Changed in 915resolution:
status: Unconfirmed → Confirmed
Revision history for this message
Andrew Bennetts (spiv) wrote :

I also see this bug. Unlike for Bradley, fixing the init.d script to do "vbefp panelsize" makes it correctly automatically detect my panel and make it work at the right resolution (1280x800) with MODE=auto. (Perhaps Bradley is the victim of another bug as well?)

I have a Dell Inspiron 630m laptop, with a "Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)".

Revision history for this message
Bradley T Hughes (bhughes) wrote :

Indeed... it seems the AUTO mode of 915resolution replaces my VESA text mode. Here's a diff from 915resolution -l when configured manually and automatically:

--- 915resolution-l.manual 2006-05-24 09:35:42.000000000 +0200
+++ 915resolution-l.auto 2006-05-24 09:32:33.000000000 +0200
@@ -13 +13 @@
-Mode 3c : 1280x800, 8 bits/pixel
+Mode 3c : 1920x1440, 8 bits/pixel
@@ -19 +19 @@
-Mode 4d : 1280x800, 16 bits/pixel
+Mode 4d : 1920x1440, 16 bits/pixel
@@ -25,4 +25,4 @@
-Mode 5c : 1280x800, 32 bits/pixel
-Mode 60 : 512x771, 8 bits/pixel
-Mode 61 : 512x771, 16 bits/pixel
-Mode 62 : 512x771, 32 bits/pixel
+Mode 5c : 1920x1440, 32 bits/pixel
+Mode 60 : 1280x800, 8 bits/pixel
+Mode 61 : 1280x800, 16 bits/pixel
+Mode 62 : 1280x800, 32 bits/pixel

Revision history for this message
Michel D'HOOGE (michel-dhooge) wrote :

I think this is correct given the description of AUTO mode:
# With 'auto' detection, the panel-size will be fetched from the VBE
# BIOS if possible and the highest-numbered mode in each bit-depth
# will be overwritten with the detected panel-size.

If you think THIS is a bug, please file a new bug report. Because this one is only about vbecall not called correctly/at all.

Revision history for this message
Paul Sladen (sladen) wrote :

This was a "D'oh" on my part. I had the 'vbetool' package installed for testing (of the same version number) before I did an upload to Debian. In the mean time this was changed from 'vbecall' to 'vbefp' for "Flat-Panel extensions.

 915resolution (0.5-1ubuntu6) dapper; urgency=low
 .
   * Call 'vbetool' with 'vbefp' instead of 'vbecall'; this was
     changed before uploading to Debian.

Changed in 915resolution:
assignee: nobody → sladen
status: Confirmed → Fix Released
Revision history for this message
Paul Sladen (sladen) wrote :

Michael: can you file a separate bug please. If you read the text in:

  /etc/init.d/915resolution

This is currently:

    # For want of a better approach to selecting modelines for stealing;...
    # this expression grabs us the highest *numbered* mode in each
    # bit-depth that the BIOS already lists.
    #
    # An argument for using the highest mode-number, rather than the
    # highest resolution is that if we've already reprogrammed the
    # mode to be a lower resolution it will no longer be the highest.

I'm certainly welcome to suggestions (BTW, this problem will have disappeared by Dapper+1 because Intel have donated code to Xorg to be able to program the modes, rather than going through the BIOS.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.