[Nouveau] [PATCH v3] drm/nouveau: Add support to control backlight using bl_power for nva3.

2022-11-04 Thread Antonio Gomes
From: antoniospg Summary: * Add support to turn on/off backlight when changing values in bl_power file. This is achieved by using function backlight_get_brightness() in nva3_set_intensity to get current brightness. Test plan: * Turn off: echo 1 > /sys/class/backlight/nv_backlight/bl_power

[Nouveau] [PATCH v3] drm/nouveau: Add support to control backlight using bl_power for nva3.

2022-11-04 Thread Antonio Gomes
From: antoniospg Summary: * Add support to turn on/off backlight when changing values in bl_power file. This is achieved by using function backlight_get_brightness() in nva3_set_intensity to get current brightness. Test plan: * Turn off: echo 1 > /sys/class/backlight/nv_backlight/bl_power

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
Switch to 360x240 works, but it is only scaled to 640x480. I read that it should be possible to set particular TV chipset registers and there's nvtv utility for that: https://manpages.ubuntu.com/manpages/focal/man1/nvtv.1x.html I guess it will work only with nvidia driver, which in NV40 case is l

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
Yes, switching to 360x240 works! Interesting...it is definitely a step forward while still not satisfying result. On Fri, Nov 4, 2022 at 6:13 PM Lukas Satin wrote: > 1) Some people here say: " Scrap everything already stated. The old > Nvidia cards with the mini DIN analog video out can ONLY do

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
1) Some people here say: " Scrap everything already stated. The old Nvidia cards with the mini DIN analog video out can ONLY do 480i output. 240p is not an option." Source: https://www.reddit.com/r/crtgaming/comments/a9k85n/old_nvidia_geforce_output_240p/ But I guess that is due to using Windows

Re: [Nouveau] TV Out question

2022-11-04 Thread Ilia Mirkin
On Fri, Nov 4, 2022 at 12:56 PM Lukas Satin wrote: > > Hello, sorry fo the typos. Wanted to catch you before the weekend, to get > some hints for upcoming work. > > I'm back at PC. > > Does your driver support switching to 240p in NTSC and 288p in PAL on the go > via xrandr, for example? > > If

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
240p compatibility list of TVs: https://static1.squarespace.com/static/51f517f0e4b01da70d01ca2a/t/5a2f36e953450aa1429361d9/1513043690556/240p-TVs_20171211.pdf Source: https://www.hdretrovision.com/240p On Fri, Nov 4, 2022 at 5:55 PM Lukas Satin wrote: > Hello, sorry fo the typos. Wanted to catc

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
Hello, sorry fo the typos. Wanted to catch you before the weekend, to get some hints for upcoming work. I'm back at PC. Does your driver support switching to 240p in NTSC and 288p in PAL on the go via xrandr, for example? If not, can I find some relevant part of code in your repository where to

Re: [Nouveau] TV Out question

2022-11-04 Thread Lukas Satin
Yes I just figured it out an hour ago. It works same as hd480i. Win7 can switch pal and ntsc just by changing desktop tesolution. Wht about here? TV with svideo or component rca supporr 480i and 240p by the spec. I hve added modelines for that. It works via dvi to vga to bnc to rca wity 15khz ke

Re: [Nouveau] TV Out question

2022-11-04 Thread Ilia Mirkin
https://nouveau.freedesktop.org/KernelModuleParameters.html Perhaps nouveau.tv_norm=NTSC-M will help get you the 60hz modes? I haven't played with these options much at all, it has always sorta Just Worked for me. This should have the validation of new modes, make sure you don't run afoul of this

Re: [Nouveau] [PATCH v5 02/31] drm/i915: Don't register backlight when another backlight should be used (v2)

2022-11-04 Thread Hans de Goede
Hi Matthew, Rafael, On 10/27/22 14:09, Rafael J. Wysocki wrote: > On Thu, Oct 27, 2022 at 12:37 PM Hans de Goede wrote: >> >> Hi, >> >> On 10/27/22 11:52, Matthew Garrett wrote: >>> On Thu, Oct 27, 2022 at 11:39:38AM +0200, Hans de Goede wrote: >>> The *only* behavior which actually is new i

Re: [Nouveau] [PATCH v3 23/23] drm/fb-helper: Clarify use of last_close and output_poll_changed

2022-11-04 Thread Javier Martinez Canillas
On 11/3/22 16:14, Thomas Zimmermann wrote: > Clarify documentation in the use of struct drm_driver.last_close and > struct drm_mode_config_funcs.output_poll_changed. Those callbacks should > not be said for fbdev implementations on top of struct drm_client_funcs. > > Signed-off-by: Thomas Zimmerma

Re: [Nouveau] [PATCH v3 20/23] drm/fb-helper: Set flag in struct drm_fb_helper for leaking physical addresses

2022-11-04 Thread Javier Martinez Canillas
On 11/3/22 16:14, Thomas Zimmermann wrote: > Uncouple the parameter drm_leak_fbdev_smem from the implementation by > setting a flag in struct drm_fb_helper. This will help to move the > generic fbdev emulation into its own source file, while keeping the > parameter in drm_fb_helper.c. No functional