Thursday, October 24, 2013

Linux Fedora 19 NVidia Brightness setting

NVidia in Fedora 14 is unable to bet set via GNOME desktop. The workaround was
# echo 5 > /sys/class/backlight/acpi_video0/brightness
And to retained the setting, simply add the command line in the /etc/rc.local

Now I am in Fedora 19 64bit with kernel updated and NVidia installed. The boot
parameter already set to acpi_mode=vendor. Attempting the same workaround but
The result is not like the expected. Right after the # echo 5 > ... The brightness stays
at 10, nothing happen.

Accidentally suspend (standby) my laptop session and resume runs the new
brightness setting. So the conclusion is that the brightness setting will take
effect if you somehow shutdown the display and turn it back on. The way that
I know is to pm-suspend or going to standby mode.

Hope it helps.

Tuesday, October 22, 2013

Linux STM32F4-DISCOVERY STLINK-V2 not detected

Just got my STM32F4-DISCOVERY from ebay.com, was having hard time to work with.
Since i've plugged the USB mini cable to the board and my laptop. I've managed the CN3
jumpers are ON. The LED LD1 or the COM led was blinking the shinny yellow light.
Curious... ahah! Just found that my USB mini cable is not a data cable but a power cable
that bundled with my portable USB Powerbank.



Sunday, October 20, 2013

Linux openOCD build failed 'missing makeinfo texi' of stellaris launchpad, stm32FX discovery

Stuck while building the openOCD? And it stops with error building the docs?? Ouchh...
luckily got this. Just set --enable-maintainer-mode in the configure, also as my addition
is to install the texinfo ( I am using Fedora 19 64bit), actually got the tip somewhere
i forgot.

Before:

./configure --prefix=/usr --enable-maintainer-mode --enable-stlink --enable-ti-icdi

and it ends up with error building the docs of openOCD

After:

./configure --prefix=/usr --enable-maintainer-mode --enable-stlink --enable-ti-icdi
--enable-maintainer-mode

It works! And now to get the lm4flash to work, first you need to use the usb port next to the switch with
device -- debug label then switch it to debug mode. Test the sudo lm4flash blinky.bin.

It works like charm! Happy electrifying..

Friday, October 18, 2013

Linux Fedora 19 Nautilus shoot CPU 100%

My laptop's fan keep spinning in high rpm. Curious, i open up the system monitor, Nautilus
process is using the CPU to 100%. And i google found this,

$ killall nautilus

apparently it is a  known issued. Well this is a short article hope it helps.

Saturday, October 12, 2013

Linux Fedora 19 Oracle XE 11g Uninstall failed

I just upgrade my fedora 14 to Fedora 19. Done with some rsync and moving stuffs.
And here come the new Oracle XE 11 g installation process, finished and run smooth.
Heh?! So what was the problem? The problem is i've messed up with these 

impdp  system/system_password full=Y directory=DUMP_DIR 
 dumpfile=DB10G.dmp logfile=expdpDB10G1.log
impdp  system/system_password directory=DUMP_DIR 
 TABLE_EXISTS_ACTION=APPEND TABLES=FLOWS_FILES.WWV_FLOW_FILE_OBJECTS$ 
 dumpfile=DB10G2.dmp logfile=expdpDB10G1b.log



Which i followed from here which guide me to migrating the whole data
of my Oracle XE 10g. The full expdp of XE 10g did not include the whole
users tablespace, forgive me i am not that familiar with this thing,
so to copy or just create new tablespace or something were not taken
or even tested. Since i've frustated Ctrl-C the import process and
ended up with broken database. The Oracle refused to start! Ok calm down 
lets just uninstall, i did the sudo yum remove oracle-xe...rpm, done!

Fresh localinstall with yum and the prompt says that i have to execute the init
script as root. Script run by root and set the port and it shows configuring the
database and done and load the listener and finish! I open my sqlplus / as sysdba.
It shows me idle connection prompt and hey! I did a little test, i queried

sql> select * from cat;

And it returns me that the oracle is shutting down in progress. I run this query

sql> shutdown immediate;

Run well, and then

sql> startup mount;

Unable to mount since there is no controll file??? Alright did some googling and
found that the previous yum uninstall did not remove the post-init oracle generated
files. What and where are the files you could have a very good reference here.
I run these commands:

rm -Rf /usr/lib/oracle/xe
rm -Rf /etc/oratab
rm -Rf /etc/init.d/oracle-xe
rm -Rf /etc/sysconfig/oracle-xe

Then yum uninstall and re-install and now everything work as expected. Hope
that this article could help you to solve the same problem. Actually you could
do re-init or re-configure without reinstall the oracle-xe. Just remove these files
/etc/sysconfig/oracle-xe, /etc/oratab. And as root run /etc/init.d/oracle-xe configure.
The controll files and database will be refreshed.

Hope it helps.