Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1242118 > unrolled thread
| Started by | Tomi Valkeinen <tomi.valkeinen@ti.com> |
|---|---|
| First post | 2015-10-08 11:40 +0200 |
| Last post | 2015-10-08 16:00 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] uvesafb: make scaling configurable on Nvidia cards Tomi Valkeinen <tomi.valkeinen@ti.com> - 2015-10-08 11:40 +0200
Re: [PATCH] uvesafb: make scaling configurable on Nvidia cards Mikulas Patocka <mpatocka@redhat.com> - 2015-10-08 14:00 +0200
Re: [PATCH] uvesafb: make scaling configurable on Nvidia cards Tomi Valkeinen <tomi.valkeinen@ti.com> - 2015-10-08 14:30 +0200
Re: [PATCH] uvesafb: make scaling configurable on Nvidia cards Mikulas Patocka <mpatocka@redhat.com> - 2015-10-08 16:00 +0200
| From | Tomi Valkeinen <tomi.valkeinen@ti.com> |
|---|---|
| Date | 2015-10-08 11:40 +0200 |
| Subject | Re: [PATCH] uvesafb: make scaling configurable on Nvidia cards |
| Message-ID | <qhfQ6-7WO-17@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On 03/09/15 00:23, Mikulas Patocka wrote: > [ I sent this some times ago, but didn't get any response ] > > > Nvidia cards have a BIOS function 0x4f14 that allows to set flat panel > scaling. This patch adds a module parameter "scaling" that uses this > function to set the scaling. By default, the parameter is -1, so that the > driver doesn't attempt to call the scaling function. > > This patch is useful when using the binary Nvidia graphics driver - in > that case, the console may be only in text mode or VESA mode. By default, > the video card does scaling that degrades font quality and changes aspect > ratio. This patch makes it possible to turn off the scaling and improve > font quality on the console. > > The allowed values depend on VESA BIOS. On my card, the following values > are allowed: > -1 - do not change the scaling > 0 - scale to full screen > 1, 2 - don't scale > 3 - scale and preserve aspect ratio > 4 - scale with black border around > > Example use: > echo 1 >/sys/module/uvesafb/parameters/scaling; fbset 1280x1024-60 -depth 32 -a > - this sets unscaled 1280x1024 video mode that has much sharper font than > the scaled modes. I have to say I don't know much about x86 video, but isn't uvesafb supposed to be a generic driver? Adding nvidia specific features there doesn't sound like a right way to handle this. Tomi
[toc] | [next] | [standalone]
| From | Mikulas Patocka <mpatocka@redhat.com> |
|---|---|
| Date | 2015-10-08 14:00 +0200 |
| Message-ID | <qhi1A-2A7-23@gated-at.bofh.it> |
| In reply to | #1242118 |
On Thu, 8 Oct 2015, Tomi Valkeinen wrote: > > On 03/09/15 00:23, Mikulas Patocka wrote: > > [ I sent this some times ago, but didn't get any response ] > > > > > > Nvidia cards have a BIOS function 0x4f14 that allows to set flat panel > > scaling. This patch adds a module parameter "scaling" that uses this > > function to set the scaling. By default, the parameter is -1, so that the > > driver doesn't attempt to call the scaling function. > > > > This patch is useful when using the binary Nvidia graphics driver - in > > that case, the console may be only in text mode or VESA mode. By default, > > the video card does scaling that degrades font quality and changes aspect > > ratio. This patch makes it possible to turn off the scaling and improve > > font quality on the console. > > > > The allowed values depend on VESA BIOS. On my card, the following values > > are allowed: > > -1 - do not change the scaling > > 0 - scale to full screen > > 1, 2 - don't scale > > 3 - scale and preserve aspect ratio > > 4 - scale with black border around > > > > Example use: > > echo 1 >/sys/module/uvesafb/parameters/scaling; fbset 1280x1024-60 -depth 32 -a > > - this sets unscaled 1280x1024 video mode that has much sharper font than > > the scaled modes. > > I have to say I don't know much about x86 video, but isn't uvesafb > supposed to be a generic driver? Adding nvidia specific features there > doesn't sound like a right way to handle this. > > Tomi Where do you think that this functionality should be added? To Nouveau? - Nouveau can't be used with nVidia binary driver, and this functionality is useful especially with nVidia binary driver (it allows to get nice console with sharp fonts). BTW. I don't know if this BIOS function is supported on AMD or not. Could someone try it? I don't have an AMD card. Mikulas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Tomi Valkeinen <tomi.valkeinen@ti.com> |
|---|---|
| Date | 2015-10-08 14:30 +0200 |
| Message-ID | <qhiuB-3nl-1@gated-at.bofh.it> |
| In reply to | #1242281 |
[Multipart message — attachments visible in raw view] — view raw
On 08/10/15 14:51, Mikulas Patocka wrote: >> I have to say I don't know much about x86 video, but isn't uvesafb >> supposed to be a generic driver? Adding nvidia specific features there >> doesn't sound like a right way to handle this. >> >> Tomi > > Where do you think that this functionality should be added? To Nouveau? - > Nouveau can't be used with nVidia binary driver, and this functionality is > useful especially with nVidia binary driver (it allows to get nice console > with sharp fonts). I don't know where is should be. But with a quick look I don't see any gfx card specific features in uvesafb, and the doc clearly says it's a generic driver. So if we add this nvidia feature there, shall we add other features for other cards also? It's a kind of slippery road. So how does uvesafb work with nvidia driver? uvesafb is used for initial console, and nvidia driver takes over later when (and if) it's loaded? And it's not possible to change the scaling via nvidia's driver? > BTW. I don't know if this BIOS function is supported on AMD or not. Could > someone try it? I don't have an AMD card. Quick googling shows that 0x4f14 might be used by other gfx cards (Epia) for something else. But I can't really say for sure. So in the minimum I think the parameter should be renamed to "nvidia_scaling" or similar. Tomi
[toc] | [prev] | [next] | [standalone]
| From | Mikulas Patocka <mpatocka@redhat.com> |
|---|---|
| Date | 2015-10-08 16:00 +0200 |
| Message-ID | <qhjTI-5jJ-3@gated-at.bofh.it> |
| In reply to | #1242295 |
On Thu, 8 Oct 2015, Tomi Valkeinen wrote: > > On 08/10/15 14:51, Mikulas Patocka wrote: > > >> I have to say I don't know much about x86 video, but isn't uvesafb > >> supposed to be a generic driver? Adding nvidia specific features there > >> doesn't sound like a right way to handle this. > >> > >> Tomi > > > > Where do you think that this functionality should be added? To Nouveau? - > > Nouveau can't be used with nVidia binary driver, and this functionality is > > useful especially with nVidia binary driver (it allows to get nice console > > with sharp fonts). > > I don't know where is should be. But with a quick look I don't see any > gfx card specific features in uvesafb, and the doc clearly says it's a > generic driver. So if we add this nvidia feature there, shall we add > other features for other cards also? It's a kind of slippery road. > > So how does uvesafb work with nvidia driver? uvesafb is used for initial > console, and nvidia driver takes over later when (and if) it's loaded? > And it's not possible to change the scaling via nvidia's driver? The nvidia binary driver doesn't handle console, it only handles Xwindow. You can use either the VGA 80x25 text console or you can set graphics console with uvesafb - in both cases, the video card hardware scales the screen and the console font is blurry. The patch allows to turn off the scaling. > > BTW. I don't know if this BIOS function is supported on AMD or not. Could > > someone try it? I don't have an AMD card. > > Quick googling shows that 0x4f14 might be used by other gfx cards (Epia) > for something else. But I can't really say for sure. So in the minimum I > think the parameter should be renamed to "nvidia_scaling" or similar. Someone should try the patch on AMD card and say if it can set scaling there. Mikulas > Tomi > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web