Note: The given code area (xrandr.py:150) has changed in unstable, so this bug
is probably only relevant for Wheezy.
cvt(1) suggest mode line names with a dot in it, which seems to make arandr
explode. No GUI window is shown, output see below:
$ xrandr # (I used xrandr --newmode/--addmode before, using the dot name)
....
CRT1 connected 1360x768+0+0 (normal left inverted right x axis y axis) 760mm x 450mm
....
1368x768_60.00 59.9
$ arandr
Traceback (most recent call last):
File "/usr/bin/arandr", line 42, in <module>
main()
File "/usr/lib/python2.7/dist-packages/screenlayout/gui.py", line 318, in main
force_version=options.force_version
File "/usr/lib/python2.7/dist-packages/screenlayout/gui.py", line 159, in __init__
self.filetemplate = self.widget.load_from_x()
File "/usr/lib/python2.7/dist-packages/screenlayout/widget.py", line 93, in load_from_x
self._xrandr.load_from_x()
File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 150, in load_from_x
o.modes.append(Size(int(a) for a in d.strip().split(" ")[0].split("x")))
File "/usr/lib/python2.7/dist-packages/screenlayout/auxiliary.py", line 53, in __new__
arg = tuple(arg)
File "/usr/lib/python2.7/dist-packages/screenlayout/xrandr.py", line 150, in <genexpr>
o.modes.append(Size(int(a) for a in d.strip().split(" ")[0].split("x")))
ValueError: invalid literal for int() with base 10: '768_60.00'
$
As mentioned above: Probably the unstable package is not broken in that way.
I didn't figure out if this can be smoothly installed in stable.
Cheers,
Julius
I can't replace built in "XxY" modes so use additional "R" ones calculated with: cvt -r 1440 900 60 cvt -r 1400 1050 60 This is labelled 1440x900R as previous 1440x900 in use can not be changed. Integer conversion (int()) stops on 'R' with error. Need to match only first two groups of digits in mode as frequency and flags do not matter. Split H on "x" and then split V on any non digit? Any non-digit for H would also allow for '*", 'X', '×', etc.
hello julius, thanks for pointing my attention; i somehow overlooked the originally incoming bugreport. i think the most straightforward way to solve this is a backport, as the issue has been fixed in testing for some time; i'm currently preparing one. best regards chrysn
Hi, I'm seeing a similar but different thing on Wheezy: ... ValueError: invalid literal for int() with base 10: '1080i' $ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920 DisplayPort-0 disconnected (normal left inverted right x axis y axis) HDMI-0 connected (normal left inverted right x axis y axis) 1920x1080 60.0 + 60.0 24.0 1920x1080i 30.0 25.0 1600x1200 60.0 ... thanks, Hamish
block 718366 by 740435 thank you it's the same bug. i'm waiting for release team feedback on uploading a fixed version to stable (see bug #740435). (don't tell anybody i said this, as it is not recommended procedure for security reasons, but there is an easy workaround: the arandr version in testing works on stable as well, you can just download the deb and install it).