All Posts

Just a modified Kppp icon

Nothing serious here, just replace some kppp icon to match Ambiance theme in my Desktop. Here is the screenshot: Modem image source: http://clipartist.info/openclipart.org/SVG/ben/wireless_broadband_modem.svg =-=-=-=-= Powered by Blogilo

When Slackware got Ubuntu Lucid style

Getting bored with the default Air plasma-desktop theme, I changed several appearance of KDE to look like Ubuntu Lucid. It was during my internship at VALORIA that I have used Ubuntu Lucid for the first time. So here is what I’ve done so far with my KDE. This cool desktop environment is really highly customizable. KDM theme: KDE splash screen: KWin theme: Plasma desktop theme: Cursor theme: Style: Color: Icon: Fonts: Desktop 1: Desktop 2: =-=-=-=-=

Blacklist Smartfren modem Haier CE682 on ModemManager autoprobe

Create new udev rule /etc/udev/rules.d/81-blacklist-modemmanager.rules with this content: ATTRS{idVendor}=="201e", ATTRS{idProduct}=="1022", ENV{ID_MM_DEVICE_IGNORE}="1" Reload udev & plug-in the modem Voila…. ref: http://cgit.freedesktop.org/ModemManager/ModemManager/tree/src/77-mm-usb-device-blacklist.rules =-=-=-=-= Powered by Blogilo

Workaround: broken font rendering Ksnapshot & Krunner

Fonts look weird in ksnapshot. After investigating around, I found that the problem is called kerning. It is indeed didn’t noticable for some people. To solve this problem, I force ksnapshot to use raster graphics system instead of native. $ ksnapshot -graphicssystem raster Here is the comparison, left image is using native, the right one is using raster. Look at the button more precisly. Do you notice it? Luckily I noticed it.

Patch option kernel module (option.ko) to support Haier CE682 aka. Smartfren modem sejuta umat

Here is the patch: root@pcxthinkslack:/home/bowo# cat /home/bowo/Packages/src/patch/option.diff --- /usr/src/linux/drivers/usb/serial/option.c 2012-12-10 13:08:02.000000000 +0700 +++ /tmp/option.c 2013-01-20 19:41:19.037644747 +0700 @@ -327,8 +327,9 @@ /* Haier products */ #define HAIER_VENDOR_ID 0x201e #define HAIER_PRODUCT_CE100 0x2009 +#define HAIER_PRODUCT_CE682 0x1022 /* Cinterion (formerly Siemens) products */ #define SIEMENS_VENDOR_ID 0x0681 #define CINTERION_VENDOR_ID 0x1e2d @@ -1172,8 +1173,9 @@ .driver_info = (kernel_ulong_t)&four_g_w14_blacklist }, { USB_DEVICE(LONGCHEER_VENDOR_ID, ZOOM_PRODUCT_4597) }, { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE100) }, + { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE682) }, /* Pirelli */ { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_C100_1)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_C100_2)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1004)}, Re-compile the option kernel module which is located within usb/serial

My better way to turn off LCD monitor without vbetool

With this command, I don’t need a super user privileges like vbetool does. We had to make sure that DPMS is enabled in X. And then using xset command to configure DPMS like: xset dpms force off I replace my old command in xbindkeysrc: bowo@pcxthinkslack:~$ diff /tmp/xbindkeysrc ~/.xbindkeysrc 23c23,24 < "/usr/local/bin/toogle-lcd-state.sh" --- > #"/usr/local/bin/toogle-lcd-state.sh" > "/usr/bin/xset dpms force off" Update /etc/sudoers.d/01_bowo by commenting out this line %users ALL=NOPASSWD:/usr/sbin/vbetool and delete /usr/local/bin/toogle-lcd-state.

Disabling -MARK- Statement on Syslog

Sometimes I see some “– MARK –” message on my Plasma Desktop file watcher. This message is useless for me (at this time). Running custom command of syslogd is the solution. With the “-m 0″ parameter. It’s done by editing /etc/rc.d/rc.syslog root@pcxthinkslack:~# diff /tmp/rc.syslog /etc/rc.d/rc.syslog 9,10c9,10 < echo -n "/usr/sbin/syslogd " < /usr/sbin/syslogd --- > echo -n "/usr/sbin/syslogd -m 0" > /usr/sbin/syslogd -m 0 Ref: /usr/share/doc/Linux-HOWTOs/Battery-Powered =-=-=-=-= Powered by Blogilo

Slackware 14.0 is missing run in prunepaths in /etc/updatedb.conf

Source: http://www.linuxquestions.org/questions/slackware-14/slackware-14-0-is-missing-run-in-prunepaths-in-etc-updatedb-conf-4175444138/ Just add /run to /etc/updatedb.conf I noticed that my Dolphin still using /media to mount external drive, I almost didn’t use Thunar. =-=-=-=-= Powered by Blogilo

Workaround: Automount Removable Media with udev

Got this tricks from Arch guy somewhere on the internet. I did this thing because the default KDE shipped with Slackware does not do the automount job well, at least on my machine. This tricks uses udev. Here is my addition of udev rule: bowo@pcxthinkslack:~$ cat /etc/udev/rules.d/10-my-media-automount.rules # /etc/udev/rules.d/10-my-media-automount.rules # start at sdb to ignore the system hard drive KERNEL!="sd[c-z]*", GOTO="my_media_automount_end" ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="my_media_automount_end" # import some useful filesystem info as variables IMPORT{program}="/sbin/blkid -o udev -p %N" # get the label if present, otherwise assign one based on device/partition ENV{ID_FS_LABEL}!

Run Specific Command Before/After Suspend/Hibernate on Linux

Using bash sript that accept these arguments: suspend = called when system is going to suspend to ram (sleep) freeze = called when system is going to suspend to disk (hibernate) resume = called when system is wake-up from sleep thaw = called when system is wake-up from hibernate Here is an example of mine! root@pcxthinkslack:/home/bowo# cat /etc/pm/sleep.d/pcx.sh #!/bin/bash case $1 in suspend|freeze) #suspending to RAM logger "suspend/freeze in action" ;; resume|thaw) #resume from suspend #set default parameter of mic led that is muted logger "resume/thaw in action" sudo chmod o+w /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness sudo chmod o-w /sys/devices/platform/thinkpad_acpi/leds/tpacpi::micmute/brightness #restore mixer settings alsactl restore ;; *) ;; esac =-=-=-=-=