トップ 最新 追記

Masa's blog

検索キーワード:

2018年01月21日 How to make working stably `PLANEX GW-USNano2 802.11n Wireless Adapter [Realtek]' [長年日記]

_ 'PLANEX GW-USNano2' is unstable with Slackware-14.2's native driver.

I'm using `PLANEX GW-USNano2' for USB wireless adapter on Slackware-14.2(64). But it often disconnect with native driver rtl8291cu :(

_ How to fix

Use P.Varet's rtl8192cu-fixes for driver :)

Install dkms-2.4.0.tar.gz first.

# wget https://slackbuilds.org/slackbuilds/14.2/development/dkms.tar.gz
# tar xvf dkms.tar.gz
# cd dkms
# wget https://github.com/dell/dkms/archive/v2.4.0/dkms-2.4.0.tar.gz
# sh dkms.SlackBuild
# installpkg /tmp/dkms-2.4.0-x86_64-1_SBo.tgz

Install rtl8192cu-fixes

# git clone https://github.com/pvaret/rtl8192cu-fixes.git
# dkms add ./rtl8192cu-fixes
# dkms install 8192cu/1.10
# depmod -a
# cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/
# cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/
# reboot

After that, `PLANEX GW-USNano2' works very fine(I don't face suddenly disconnect).

_ misc

Mr. P.Varet said in his github page

!! This driver is DEPRECATED !!
The new rtl8xxxu driver initially introduced in kernel 4.4 works pretty well these days, and you almost certainly should prefer it to this repository.

But I think P.Varet's driver is still more stable than Slackware-14.2's native driver in Kernel 4.4.14.

_ Additional information at 2019/4/8

P.Varet's driver no longer can't work with kernel 4.4.178. But Native driver(rtl8192cu) seems working fine :)

/etc/modprobe.d/8192cu.conf

# rtw_power_mgnt=0|1|2
# 0 == disable power saving
# 1 == power saving on, minPS
# 2 == power saving on, maxPS
#
# rtw_enusbss=0|1
# 0 == disable auto suspend
# 1 == enable auto suspend
#
# rtw_hwpwrp_detect=0|1
# 0 == disable HW power pin detection
# 1 == enable HW power pin detection
#
# rtw_ips_mode=0|1
# 0 == low power, IPS_NORMAL
# 1 == higher power, IPS_LEVEL2

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=1

2018年01月25日 Build firefox-58.0 on Slackware-14.2(64) [長年日記]

_ Build

$ cd ~m-ito/tmp
$ tar xvf firefox-58.0.source.tar.xz
$ cd firefox-58.0
$ vi .mozcofig
export LDFLAGS="-latomic"
. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-optimize
ac_add_options --enable-default-toolkit=cairo-gtk3
ac_add_options --disable-debug
ac_add_options --disable-tests
$ curl https://sh.rustup.rs -sSf | sh
$ PATH="/home/m-ito/.cargo/bin:/usr/local/autoconf-2.13/bin:${PATH}"; export PATH
$ export LANG=C; export LC_ALL=C
$ rustup update
$ ./mach build && ./mach build package

_ Install

# mkdir /usr/local/firefox-58.0
# cd /usr/local/firefox-58.0
# tar xvf /home/m-ito/tmp/firefox-58.0/obj-x86_64-pc-linux-gnu/dist/firefox-58.0.en-US.linux-x86_64.tar.bz2