$ sudo startupmanager
Traceback (most recent call last):
File "/usr/sbin/startupmanager", line 54, in <module>
main()
File "/usr/sbin/startupmanager", line 51, in main
SumGui()
File "/usr/share/startupmanager/gtk_frontend.py", line 166, in __init__
self.resolution = utils.get_resolution()
File "/usr/lib/pymodules/python2.6/bootconfig/utils.py", line 159, in get_resolution
return matches.group(1) + 'x' + matches.group(2)
AttributeError: 'NoneType' object has no attribute 'group'
i've traced back the problem to the output of xrandr that as chaged in the latest version :
$ xrandr
SZ: Pixels Physical Refresh
0 1024 x 768 ( 347mm x 260mm ) 60
1 160 x 120 ( 54mm x 41mm ) 60
2 320 x 240 ( 108mm x 81mm ) 60
3 640 x 480 ( 217mm x 163mm ) 60
4 800 x 600 ( 271mm x 203mm ) 60
*5 1914 x 1108 ( 648mm x 375mm ) *60
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none
$ xrandr -v
xrandr program version 1.3.2
Server reports RandR version 1.1
I have almost the same problem :
$ sudo startupmanager startupmanager" , line 54, in <module> startupmanager" , line 51, in main startupmanager/ gtk_frontend. py", line 166, in __init__ resolution( ) pymodules/ python2. 6/bootconfig/ utils.py" , line 159, in get_resolution
Traceback (most recent call last):
File "/usr/sbin/
main()
File "/usr/sbin/
SumGui()
File "/usr/share/
self.resolution = utils.get_
File "/usr/lib/
return matches.group(1) + 'x' + matches.group(2)
AttributeError: 'NoneType' object has no attribute 'group'
i've traced back the problem to the output of xrandr that as chaged in the latest version :
$ xrandr
SZ: Pixels Physical Refresh
0 1024 x 768 ( 347mm x 260mm ) 60
1 160 x 120 ( 54mm x 41mm ) 60
2 320 x 240 ( 108mm x 81mm ) 60
3 640 x 480 ( 217mm x 163mm ) 60
4 800 x 600 ( 271mm x 203mm ) 60
*5 1914 x 1108 ( 648mm x 375mm ) *60
Current rotation - normal
Current reflection - none
Rotations possible - normal
Reflections possible - none
$ xrandr -v
xrandr program version 1.3.2
Server reports RandR version 1.1
in utils.py
def get_resolution():
pipe = os.popen('xrandr')
data = pipe.read()
pipe.close()
matches = re.search('current (\d+) x (\d+)', data)
return matches.group(1) + 'x' + matches.group(2)
there is a search for current \d+ ...
this is not in the output of xrandr anymore.
changing the regexp search like this fix it :
matches = re.search( '\*\s*\ d+\s+(\ d+) x (\d+)', data)