SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-05-30 16:50:38

Alefa
Member
From: Freiburg, Germany
Registered: 2013-03-29
Posts: 42

arandr refuses to start

Hi everyone,

when I try to start arandr from the Openbox menu or dmenu, nothing happens. Starting from the console gives the following message:

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 315, in main
    force_version=options.force_version
  File "/usr/lib/python2.7/dist-packages/screenlayout/gui.py", line 156, 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: '768i'

Any ideas how to fix that? I have already purged and reinstalled arandr, but it still refuses to start. Thanks in advance.

Alefa

Offline

Help fund CrunchBang, donate to the project!

#2 2013-05-30 18:43:04

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: arandr refuses to start

There is a workaround in this thread

Offline

#3 2013-05-30 19:17:12

Alefa
Member
From: Freiburg, Germany
Registered: 2013-03-29
Posts: 42

Re: arandr refuses to start

Thanks for pointing out this thread, xaos52. I tried the workaround suggested there, but it didn't work. It seems that my problem is not exactly the same as the one those people had, because when I run "xrandr" from the console, the output does not contain the word "primary". So removing that word as suggested in this thread doesn't help. Any other ideas? Or should I just use one of the other RandR GUIs like grandr or lxrandr? For now, I just use xrandr on the console, but sometimes it's nice to have a GUI.

Offline

#4 2013-05-31 10:28:39

Alefa
Member
From: Freiburg, Germany
Registered: 2013-03-29
Posts: 42

Re: arandr refuses to start

After a bit of googling, I found out that the problem I have seems to be a known bug (this one). The bug is supposed to be fixed in version 0.1.7 of arandr, but Debian Wheezy still uses version 0.1.6. This blog describes a workaround: http://blog.rktmb.org/search?q=arandr+q … th+base+10
By applying the workaround, I managed to make arandr appear, but either I don't understand how it works or it is not working properly. I couldn't activate my laptop monitor (which I usually switch off when using an external monitor). Anyway, I now installed grandr, which works fine. Hope the above instructions will be useful for someone else.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo