Solved xorg start with high backlight in FreeBSD 11

hi
aftet read a lot of post in your magnific forum all that give me a courage to inatll FreeBSD in my hard belong to arch.
Before that i take time in virtualbox before i did this step.
realy i did it and i'm very excited.
but after installed it i faced a problem that xorg dosn't work well i installed it by doing these
pkg install xorg xfce
add
dbus_enable="YES"
hald_enable="YES"
to
/etc/rc.conf
add
/usr/local/bin/startxfce4
to .xinitrc
this is lspci in arch
Code:
[islamux@arch ~]$ lspci | grep -i gen
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
i trayed to delet xorg from pkg and install it from ports but the same result
"login by startx ok ... but the backlight is higher and i can't decrease it
when i move windows it's not smoth
when i want to use alt+ctrl+ fn the screen comes black then white and i can't do any thing
i enter power button to poweroff the labtop
this is the error message
Code:
EE Failed to load module "intel" module dosn't exist
EE open /dev/dri/card0 No such file or directory
EE screen 0 deleted because of no matching config section
EE AIGLX reverting to software rendering
my labtop is Lenovo T430
my graphics card is
Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)

Sorry about my bad English
 
Hi islamux ,

Code:
EE Failed to load module "intel" module dosn't exist
EE open /dev/dri/card0 No such file or directory
EE screen 0 deleted because of no matching config section
EE AIGLX reverting to software rendering

Assuming you have an Intel graphics chipset installed, you should install x11-drivers/xf86-video-intel:

pkg install x11-drivers/xf86-video-intel

If you're not member of the video group, you can change this by doing:

# pw groupmod video -m [I]yourusername[/I]

when i want to use alt+ctrl+ fn the screen comes black the white and i can't do any thing

Add kern.vty=vt to /boot/loader.conf

For brightness control add acpi_video_load="YES" to /boot/loader.conf

See also:
acpi_video(4)
https://www.freebsd.org/doc/handbook/x-config.html
 
This .xinitrc step is not needed on Xfce4. Simply call up startxfce4 at the command prompt. I have shortened mine to x
cp /usr/local/bin/startxfce4 /user/local/bin/x
To prevent duplicates, and to prevent the need to copy it again if the script will be updated, you can create a hard link:
ln /usr/local/bin/startxfce4 /usr/local/bin/x.
 
I use this home-brewed script to adjust my lcd back-light (I created an xfce panel icon for, this)

Code:
~/tools % cat brightness
#!/bin/sh
# Get the initial value
lcd_initial=`sysctl hw.acpi.toshiba.lcd_brightness | awk '{print $2}'`

# Set a new value
exec 3>&1
lcd_b=`Xdialog --title "Brigtness" --rangebox "Adjust LCD Backlight" 0 0 1 7 $lcd_initial 2>&1 1>&3`
exec 3>&-

sysctl hw.acpi.toshiba.lcd_brightness=$lcd_b

PS : your sysctl(8) tunable might differ.
 
thanx to all for helping

@mrclksr
your solution is work, thanx now i'm using xf86-video-intel and i'm using xbrightness "40000" for adjusting backlight manualy.

@David John
i did all that , and i'd prefer startx


@fnoyanisi
thanx for your solution i'll try it

@Trihexagonal
spacial thanx for your advices you couraged me when i read your posts



the problem normaly solved but can i tray anothe driver because this driver not satisfy :cool:me 100% .... but it works :rolleyes:
 
i solved the problem of the intel driver that isn't works well, by adding i915km_load="YES"
echo "i915km_load="YES" >> /boot/loader.conf
thanx to @aragats :)
 
Back
Top