all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* change resolution (new style) + question about qxl driver
@ 2016-07-20  9:42 tk0
  2016-07-20 21:25 ` Alex Kost
  0 siblings, 1 reply; 6+ messages in thread
From: tk0 @ 2016-07-20  9:42 UTC (permalink / raw)
  To: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2192 bytes --]

Hi,

This approach,

>
> (define (my-slim-service)
> (mlet* %store-monad ((config (xorg-configuration-file
> ;; #:drivers '("radeon" "vesa")
> #:resolutions '((1366 768) (1024 768))
> ))
> (startx (xorg-start-command
> #:configuration-file config)))
> (slim-service #:startx startx)))
>

does not work anymore, apparently.

For the reference (thanks #guix people!), the new solution that should be included in the system configuration file should be:
(define custom-desk-services
(modify-services %desktop-services
(slim-service-type config => (slim-configuration
(inherit config)
(startx
(xorg-start-command
#:configuration-file
(xorg-configuration-file
#:resolutions '((1024 768) (800 600)))))))))

;.....other stuff .....

(services %custom-desk-services)

It is also necessary to load the appropriate guile module: (gnu services xorg)

I was able to reconfigure my system without issues with the snippet above (i hoped i retyped everything correctly;
copy-n-paste does not work between my VM and host at the moment ;) ).

Any comments?

Another question is about the qxl display driver. This is the standard on my kvm image. There is this weird message from X:

****************
11.379] (II) Module glx: vendor="X.Org Foundation"
[ 11.379] compiled for 1.18.1, module version = 1.0.0
[ 11.379] ABI class: X.Org Server Extension, version 9.0
[ 11.379] (==) AIGLX enabled
[ 11.379] (==) Matched qxl as autoconfigured driver 0
[ 11.380] (==) Matched qxl as autoconfigured driver 1
[ 11.380] (==) Matched modesetting as autoconfigured driver 2
[ 11.380] (==) Matched fbdev as autoconfigured driver 3
[ 11.380] (==) Matched vesa as autoconfigured driver 4
[ 11.380] (==) Assigned the driver to the xf86ConfigLayout
[ 11.380] (II) LoadModule: "qxl"
[ 11.381] (WW) Warning, couldn't open module qxl
[ 11.381] (II) UnloadModule: "qxl"
[ 11.381] (II) Unloading qxl
[ 11.381] (EE) Failed to load module "qxl" (module does not exist, 0)
****************

It seems qxl gets unloaded, and I'm unable to push the resolution in the vm higher than 1024x768. Does anyone have an idea what is the issue here and how to fix it?



Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email.

[-- Attachment #2: Type: text/html, Size: 5236 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change resolution (new style) + question about qxl driver
  2016-07-20  9:42 tk0
@ 2016-07-20 21:25 ` Alex Kost
  0 siblings, 0 replies; 6+ messages in thread
From: Alex Kost @ 2016-07-20 21:25 UTC (permalink / raw)
  To: tk0; +Cc: help-guix@gnu.org

tk0 (2016-07-20 12:42 +0300) wrote:

[...]
> Another question is about the qxl display driver. This is the
> standard on my kvm image.  There is this weird message from X:
>
> ****************
> 11.379] (II) Module glx: vendor="X.Org Foundation"
> [    11.379]    compiled for 1.18.1, module version = 1.0.0
> [    11.379]    ABI class: X.Org Server Extension, version 9.0
> [    11.379] (==) AIGLX enabled
> [    11.379] (==) Matched qxl as autoconfigured driver 0
> [    11.380] (==) Matched qxl as autoconfigured driver 1
> [    11.380] (==) Matched modesetting as autoconfigured driver 2
> [    11.380] (==) Matched fbdev as autoconfigured driver 3
> [    11.380] (==) Matched vesa as autoconfigured driver 4
> [    11.380] (==) Assigned the driver to the xf86ConfigLayout
> [    11.380] (II) LoadModule: "qxl"
> [    11.381] (WW) Warning, couldn't open module qxl
> [    11.381] (II) UnloadModule: "qxl"
> [    11.381] (II) Unloading qxl
> [ 11.381] (EE) Failed to load module "qxl" (module does not exist, 0)
> ****************

> It seems qxl gets unloaded, and I'm unable to push the resolution in
> the vm higher than 1024x768. Does anyone have an idea what is the
> issue here and how to fix it?

"Unloading" means that this module is not loaded at all because it is
not found.  If you look at 'xorg-configuration-file' in (gnu services
xorg)¹, you'll see that there is no ModulePath line for
'xf86-video-qxl'.  Moreover, this module is not even packaged :-)

If I understand it right, this qxl module is
<https://www.x.org/releases/individual/driver/xf86-video-qxl-0.1.4.tar.bz2>.
If it's just a usual X video driver, it shouldn't be hard to package it
– it would be very similar to 'xf86-video-vesa', 'xf86-video-nouveau',
and other video driver packages in (gnu packages xorg) module².

Patches welcome :-)

¹ http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n105
² http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/xorg.scm#n3021

-- 
Alex

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change resolution (new style) + question about qxl driver
@ 2016-07-22  9:45 David Craven
  2016-07-23  9:21 ` tk0
  0 siblings, 1 reply; 6+ messages in thread
From: David Craven @ 2016-07-22  9:45 UTC (permalink / raw)
  To: help-guix

I've been working on spice support. Appart from writing synopsis
and adding descriptions there a couple of issues I've run into.

Qxl driver:
It fills my Xorg.0.log with:
> qxl_kms_surface_create: Bad bpp: 1 (1)

Spice vdagent/vdagentd:
* Copy pasting works
* Adjusting guest display resolution does not:
According to [0] only works with gnome and qxl.

Writting a service for spice vdagent:
* Needs to be started after xsession or will fail. Didn't figure
out how to start it after login.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1352226

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change resolution (new style) + question about qxl driver
  2016-07-22  9:45 change resolution (new style) + question about qxl driver David Craven
@ 2016-07-23  9:21 ` tk0
  2016-07-23  9:38   ` David Craven
  0 siblings, 1 reply; 6+ messages in thread
From: tk0 @ 2016-07-23  9:21 UTC (permalink / raw)
  To: David Craven; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

-------- Original Message --------
Subject: Re: change resolution (new style) + question about qxl driver
Local Time: 22 July 2016 10:45 AM
UTC Time: 22 July 2016 09:45
From: david@craven.ch
To: help-guix@gnu.org

I've been working on spice support. Appart from writing synopsis
and adding descriptions there a couple of issues I've run into.

Qxl driver:
It fills my Xorg.0.log with:
> qxl_kms_surface_create: Bad bpp: 1 (1)

Spice vdagent/vdagentd:
* Copy pasting works
* Adjusting guest display resolution does not:
According to [0] only works with gnome and qxl.

Writting a service for spice vdagent:
* Needs to be started after xsession or will fail. Didn't figure
out how to start it after login.

[0] https://bugzilla.redhat.com/show_bug.cgi?id=1352226



But, I am able to change resolution with xrandr

[-- Attachment #2: Type: text/html, Size: 1347 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change resolution (new style) + question about qxl driver
  2016-07-23  9:21 ` tk0
@ 2016-07-23  9:38   ` David Craven
  2016-07-28 16:10     ` David Craven
  0 siblings, 1 reply; 6+ messages in thread
From: David Craven @ 2016-07-23  9:38 UTC (permalink / raw)
  To: tk0; +Cc: help-guix

Yep me too, beats me why it doesn't work. xrandr even displays a +
beside the optimal resolution I think. I don't know why the * and the
+ aren't aligned. I asked on the spice mailing list what the
requirements for this to work are but I didn't get a straight answer.
I kind of lost interest in debugging this too after I realized it doesn't
work with wayland... =P
Could it be some weird capability stuff? I was running the
spice-vdagentd and spice-vdagent as root for testing purposes so
it can't be a permissions problem right?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: change resolution (new style) + question about qxl driver
  2016-07-23  9:38   ` David Craven
@ 2016-07-28 16:10     ` David Craven
  0 siblings, 0 replies; 6+ messages in thread
From: David Craven @ 2016-07-28 16:10 UTC (permalink / raw)
  To: tk0; +Cc: help-guix

As an update to my previous post:

Packages needed for spice and virt-viewer are waiting for review and I
got the spice service to start nicely after login. I'll submit a patch
after the packages have been merged.

Since I got stuck on something else I was working on, I'll try and see
if I can get screen resizing to work with qxl and gnome.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-07-28 16:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-22  9:45 change resolution (new style) + question about qxl driver David Craven
2016-07-23  9:21 ` tk0
2016-07-23  9:38   ` David Craven
2016-07-28 16:10     ` David Craven
  -- strict thread matches above, loose matches on Subject: below --
2016-07-20  9:42 tk0
2016-07-20 21:25 ` Alex Kost

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.