Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2015 13:42:50 +0200
From:      Lars Engels <lars.engels@0x20.net>
To:        Toby Slight <tobyslight@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>, freebsd-wireless@freebsd.org
Subject:   Re: X230 Intel Centrino Wireless-N 2200 not working
Message-ID:  <20150823114250.GY4954@e-new.0x20.net>
In-Reply-To: <CACw1_RnnMrZXUdizK9OVxhV6RSphqeD7T4SN_UKKZvL_roAcXg@mail.gmail.com>
References:  <CACw1_RkwphNG8h=cP7dv5unCYPT98jb5z90nC-MuOYYdN5x-CA@mail.gmail.com> <CAJ-VmomD2F3NCKHnBaao7YAMWg7Ee_7VeuZafOZHJKoq0NjYBw@mail.gmail.com> <CACw1_Rn8dHNv5H1-xYaS8eX5YB2WRZwLTZdmcpwh2Mk5GyFbUw@mail.gmail.com> <20150819124357.GR4954@e-new.0x20.net> <CACw1_Rmr=CF5BEjCbP-Dwra=yOfC_mZbsQ4_d%2BVrTxgDKhJC3g@mail.gmail.com> <20150819132523.GV4954@e-new.0x20.net> <CACw1_RnnMrZXUdizK9OVxhV6RSphqeD7T4SN_UKKZvL_roAcXg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Aug 19, 2015 at 02:41:35PM +0100, Toby Slight wrote:
> Forgot to cc the lists on the last response - doh!
> 
> On 19 August 2015 at 14:25, Lars Engels <lars.engels@0x20.net> wrote:
> 
> > On Wed, Aug 19, 2015 at 02:12:30PM +0100, Toby Slight wrote:
> > > On 19 August 2015 at 13:43, Lars Engels <lars.engels@0x20.net> wrote:
> > > >
> > > >
> > > > HEAD is CURRENT, so 11.0-CURRENT is what you need.
> > > > Don't worry, it's pretty stable. I'm running HEAD on my X230 since I
> > > > bought it. No problems so far.
> > > >
> > >
> > > Cool - cheers for the response Lars :-) I just fired up the -CURRENT
> > > installer and was able to configure my wifi - fantastic. Guess I'm going
> > to
> > > be running FreeBSD -CURRENT for a while then.... I must say it was nice
> > > that the the vt driver was enabled by default :-)
> >
> > Perfect! :-) Suspend / Resume should also work. I can show you my
> > loader.conf / rc.conf settings to get things going, if you like.
> >
> 
> That would be amazing and much appreciated :-) Finding it quite a jump from
> OpenBSD and Linux - got A LOT to learn! Of particular interest would be
> whether or not you still have to add to Intel KMS flags to loader.conf and
> what else needs to be added to get Xorg to work nice and reliablely... Does
> TTY to X switching work now? I remember a few years ago I could get X
> running on FreeBSD, but if I switched to a TTY, that was the end of me
> being able to use my laptop screen!

So, a little late, but here are the relevant settings for the X230.

loader.conf:
aesni_load="YES"

autoboot_delay="1"
loader_logo="beastie"

kern.maxfiles="25000"
kern.cam.boot_delay="2000"

# Energy saving
hint.p4tcc.0.disabled=1
hint.acpi_throttle.0.disabled=1
hint.pcm.0.buffersize=65536
hint.pcm.1.buffersize=65536
hw.snd.feeder_buffersize=65536
hw.snd.latency=7

# Increase netgraph memory size for heavy VirtualBox network load
net.graph.maxdata=65536

# experimental
vfs.read_max=64

# Don't power devices with no driver attached
hw.pci.do_power_nodriver=3

# APIC Timers block C3
hint.apic.0.clock=0

# Mute speaker when headphone jack is inserted and enable headphones
dev.hdaa.0.nid26_config="as=1 seq=0"
dev.hdaa.0.nid22_config="as=1 seq=15"


# No memory tests at boot time
hw.memtest.tests=0

hw.psm.trackpoint_support=1
#hw.psm.synaptics_support=1 # un-comment if you use the touchpad

# Boot-time kernel tuning
kern.ipc.shmseg=1024
kern.ipc.shmmni=1024
kern.maxproc=10000
# Increase max stack size
kern.maxssiz=1073741824

kern.vty=vt

#power saving (HUGE difference)
drm.i915.enable_rc6=7

debug.psm.loglevel=0

kern.vt.splash_cpu=1
kern.vt.splash_cpu_style=1


======================================

rc.conf:

moused_enable="YES"
# Enable scrolling with 3rd mouse button
moused_flags="-VH -U12 -L5"

powerd_enable="YES"
powerd_flags="-a hiadaptive -b hiadaptive"

# Kernel Modules
kld_list="acpi_ibm aio sem cuse coretemp libiconv libmchain cd9660_iconv msdosfs_iconv vmm nmdm"

performance_cx_lowest="Cmax"
economy_cx_lowest="Cmax"

webcamd_enable="YES"
smartd_enable="YES"
autofs_enable="YES"

==============================

sysctl.conf:

# Disable the system speaker
kern.vt.enable_bell=0

# Tune for desktop usage
kern.sched.preempt_thresh=224

# Enable shm_allow_removed (for Chromium)
kern.ipc.shm_allow_removed=1

# Suspend when the lid is closed
hw.acpi.lid_switch_state=s3

kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules


# Enable acpi_ibm button events
dev.acpi_ibm.0.events=1

# Increase audio volume
hw.snd.vpc_0db=15
hw.snd.vpc_autoreset=0

# faster shutdown
hw.usb.no_shutdown_wait=1

==================================

rc.suspend

[...]
/usr/sbin/service powerd quietrestart
/usr/sbin/service netif restart
[...]


==================================

I don't know if all that is still needed on HEAD, but it's all running fine on my box.


Lars

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJV2bG6XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF
NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1t5RQH+wYdVvZFHXHel31Iq+JDvbl4
KWouP+uoOKQELpgbb+dCNQUFk8PSv4aO6v+BVY17WDfSc0prMs0MaU0Er/wYtCSz
DgxqblJq3qmYWfVx1zcG9/mdJ5LvGES1avlgy4B6NSu+Ace3tJcGgYSh4dApL0hV
UETB/Xbv3ZNdZ2z/G41RDsbiqRXtADK0h2qWl/9g8nTaixI68SdgFS7Fpk1M7Q8j
4Z/oxykvxFPO9kSN391F+tnbIXPgpDbtqkHCdCXvDKLUY4zho9GyPKB8dvYZLoP2
o1BRTPvwfXLBrFtljjxXBLPyCyMqZjc11SKjrY+F/KsxvWqFXsTMf+vpFkrqUPU=
=cyzS
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150823114250.GY4954>