Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 151005 Details for
Bug 234131
MIssing monitor related code in merge_into()
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
xhwstate.py patch
xhwstate_merge_into.patch (text/plain), 1.66 KB, created by
Vasile Chelban
on 2007-03-27 10:14:39 UTC
(
hide
)
Description:
xhwstate.py patch
Filename:
MIME Type:
Creator:
Vasile Chelban
Created:
2007-03-27 10:14:39 UTC
Size:
1.66 KB
patch
obsolete
>diff -ruN rhpxl-0.39/rhpxl/xhwstate.py rhpxl-0.39.patched/rhpxl/xhwstate.py >--- rhpxl-0.39/rhpxl/xhwstate.py 2006-10-04 00:24:22.000000000 +0300 >+++ rhpxl-0.39.patched/rhpxl/xhwstate.py 2007-03-27 02:36:15.000000000 +0300 >@@ -84,6 +84,17 @@ > str = str + repr(r[0]) + "-" + repr(r[1]) > return str > >+def string_to_ranges(str): >+ l = [] >+ pieces = string.split(str, ",") >+ for piece in pieces: >+ tmp = string.split(piece, "-") >+ if len(tmp) == 1: >+ l.append( (string.atof(tmp[0]), string.atof(tmp[0])) ) >+ else: >+ l.append( (string.atof(tmp[0]), string.atof(tmp[1])) ) >+ return l >+ > # Return a tuple of (xres, yres, bits_per_pixel) describing the framebuffer. > def fbinfo(): > from fcntl import ioctl >@@ -365,6 +376,26 @@ > > for option in self.videocard_options: > device.options.insert(xf86config.XF86Option(option[0], option[1])) >+ >+ try: >+ if screen.monitor: >+ monitor = xf86config.lookupMonitor(xconfig, screen.monitor) >+ monitor.modelname = self.monitor_name >+ >+ hsync = string_to_ranges(self.hsync) >+ monitor.n_hsync = len(hsync) >+ for i in range(len(hsync)): >+ monitor.hsync[i] = hsync[i] >+ >+ vsync = string_to_ranges(self.vsync) >+ monitor.n_vrefresh = len(vsync) >+ for i in range(len(vsync)): >+ monitor.vrefresh[i] = vsync[i] >+ else: >+ monitor = None >+ except xf86config.XF86SectionMissing: >+ monitor = None >+ > > def add_module(self, xconfig, moduleName): > self.remove_module(xconfig, moduleName)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 234131
: 151005