Public bug reported:

xrandr output of my display:

*snip*
DVI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm 
x 299mm
   1920x1080      60.0*+
   1920x1080i     25.0  
   1600x1200      60.0  
*snip*

Resulting in:

Traceback (most recent call last):
  File "/usr/bin/arandr-2.7", line 25, in <module>
    main()
  File "/usr/lib64/python2.7/site-packages/screenlayout/gui.py", line 302, in 
main
    force_version=options.force_version
  File "/usr/lib64/python2.7/site-packages/screenlayout/gui.py", line 143, in 
__init__
    self.filetemplate = self.widget.load_from_x()
  File "/usr/lib64/python2.7/site-packages/screenlayout/widget.py", line 77, in 
load_from_x
    self._xrandr.load_from_x()
  File "/usr/lib64/python2.7/site-packages/screenlayout/xrandr.py", line 134, 
in load_from_x
    o.modes.append(Size(int(a) for a in d.strip().split(" ")[0].split("x")))
  File "/usr/lib64/python2.7/site-packages/screenlayout/auxiliary.py", line 37, 
in __new__
    arg = tuple(arg)
  File "/usr/lib64/python2.7/site-packages/screenlayout/xrandr.py", line 134, 
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: '1080i'

I did a naive hackaround with re ignoring resolutions with non numeric
characters to make it "work on my machine" (TM)

** Affects: arandr (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/873753

Title:
  failes if resolution contains non numeric characters

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/arandr/+bug/873753/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to