could not get scaling for screen
Suggested solution in bug #908856 unfortunately did not solve my problem under Ubuntu 12.04 64-Bit system.
RELATED ERROR :
$ disper --version
disper 0.3.0
$ disper -p
could not get scaling for screen CRT-0, reverting to "default"
could not get scaling for screen DFP-0, reverting to "default"
unpack requires a string argument of length 4
I have got no idea how to solve this but I have tried the previously suggested solution, as here :
$ sudo gedit /usr/share/
def decode( binary, *arguments ):
'''decode takes a byte stream and a variable argument list of XData
types and returns a dict containing the decoded byte stream.
the XData args are X type, number of elements, and the key name to
be associated with the value. the order of arguments determines
what order the fields will be decoded in'''
data = binary
rdict = {}
for arg in arguments:
structcode = __XFORMATS[
fsz = __XFORMATBYTES[
if not isinstance(
asz = arg.size
else:
asz = rdict[arg.size]
sz = asz * fsz
# BEGIN # I ADDED THESE 2 LINES BELOW AS SUGGESTED IN BUG #908856
if sz < struct.
sz = struct.
# END #
if asz == 1:
else:
sz = struct.
if arg.format.
else:
data = data[sz:]
return rdict, data
However this time I get another error here :
$ disper -p
expected an indented block (minx.py, line 129)
Lets edit it again.
$ sudo gedit /usr/share/
def decode( binary, *arguments ):
'''decode takes a byte stream and a variable argument list of XData
types and returns a dict containing the decoded byte stream.
the XData args are X type, number of elements, and the key name to
be associated with the value. the order of arguments determines
what order the fields will be decoded in'''
data = binary
rdict = {}
for arg in arguments:
structcode = __XFORMATS[
fsz = __XFORMATBYTES[
if not isinstance(
asz = arg.size
else:
asz = rdict[arg.size]
sz = asz * fsz
# BEGIN # I JUST ADDED SPACING PREFIX FOR EACH LINE, I DID NOT KNOW THIS WOULD BE IMPORTANT IN PYTHON
if sz < struct.
sz = struct.
# END # AND IT WORKS NOW BUT LETS CONTINUE
if asz == 1:
else:
sz = struct.
if arg.format.
else:
data = data[sz:]
return rdict, data
Lets try again :
$ disper -p
could not get scaling for screen CRT-0, reverting to "default"
could not get scaling for screen DFP-0, reverting to "default"
backend: nvidia
associated displays: CRT-0, DFP-0
metamode: CRT-0: 1920x1080_60 @1920x1080 +0+0
scaling: default, default
xinerama info order:
$ auto-disper --save monitor
Assuming disper defaults...
Saving current configuration as profile 'monitor'
could not get scaling for screen CRT-0, reverting to "default"
could not get scaling for screen DFP-0, reverting to "default"
As you see I could solve one of the problem mentioned in bug #908856. However I am still getting error about could not get scaling for screen.
I am looking for your solutions to try.
Thanks.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- disper Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #1005627.
Can you help with this problem?
Provide an answer of your own, or ask Hypnotic for more information if necessary.