I have a dualscreen setup with my laptop (HP 8730w) and an external monitor, running Ubuntu 10.04. Sometimes when logging in (can be after suspending or after locking the screen), the screen brightness of the laptop is set to really low and nothing in the system (brightness applet or brightness adjustment keys) can change it. The only solution until today was logging out, making sure that the mouse was on the laptop screen and logging in again. Voila, setting returned.
Now I have another way. As root, you type the following:
# cat /proc/acpi/video/DGFX/LCD/brightness
levels: 30 37 44 51 58 65 72 79 86 93 100
current: 100
# echo -n 86 > /proc/acpi/video/DGFX/LCD/brightness
where DGFX is replaced with whatever you have available in your system.
The value after echo (here 86) is the brightness percentage you want to set. Please note, that only values that are mentioned in the levels-line are accepted.
(Thanks go to susundberg @ #ubuntu for pointing me in the correct direction.)
Showing posts with label tricks. Show all posts
Showing posts with label tricks. Show all posts
Wednesday, July 28, 2010
Thursday, January 14, 2010
More latex tweaks
1) if you ever are in the situation that you want to use a *.bst file and don't know where to put it, the answer is simple. *.bst-files (used for defining personal bibliography styles) go into the same directory where your sourcefile is located.
2) *.cls-files (customised class files; often used by journals) go into /usr/share/texmf-texlive/tex/latex/whateveryouwannacallit and afterwards you run sudo mktexlsr
Afterwards, your document should compile.
2) *.cls-files (customised class files; often used by journals) go into /usr/share/texmf-texlive/tex/latex/whateveryouwannacallit and afterwards you run sudo mktexlsr
Afterwards, your document should compile.
Friday, November 20, 2009
latex insertgraphics
Apparently there is a kind of bug:
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{./images/figure.jpg}
\caption{AFM schematics \cite{Aierken}}
\label{fig:AFM}
\end{figure}
gives a reference to Figure 6 (which is the number under the figure)
whereas this:
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{./images/figure.jpg}
\label{fig:lala}
\caption{kdlseiosj}
\end{figure}
gives 3.1.2 as a reference while the number under the picture is 7.
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{./images/figure.jpg}
\caption{AFM schematics \cite{Aierken}}
\label{fig:AFM}
\end{figure}
gives a reference to Figure 6 (which is the number under the figure)
whereas this:
\begin{figure}[htb]
\centering
\includegraphics[width=0.8\textwidth]{./images/figure.jpg}
\label{fig:lala}
\caption{kdlseiosj}
\end{figure}
gives 3.1.2 as a reference while the number under the picture is 7.
Monday, September 21, 2009
gconf
I've edited my gconf for the first time ever today. I didn't really want to, but there was no other way to change the shutdown behaviour of Ubuntu Jaunty. Nowadays when choosing Shutdown a dialog box pops up saying that the PC will be shut down in 60 seconds. This can be suppressed by opening the gconf-editor and searching for shutdown (with both options 'search also in key names' and 'search also in key values' enabled). The key you want to edit is found in /apps/panel/applets/applet_fusa_auto_migrated/prefs/suppress_logout_restart_shutdown and by enabling the checkbox the confirmation dialog is suppressed. Voila!
Actually, in Ubuntu 9.04 Jaunty Jackalope it can also be changed, I found out later, by right-clicking on the 'new' log-out/IM status button and choosing preferences. There is a check box for 'Show confirm dialogs for logout, restart and shutdown'.
That makes it a bit easier, but now that I've discovered gconf-editor, I find it really handy for changing a lot of things :)
Actually, in Ubuntu 9.04 Jaunty Jackalope it can also be changed, I found out later, by right-clicking on the 'new' log-out/IM status button and choosing preferences. There is a check box for 'Show confirm dialogs for logout, restart and shutdown'.
That makes it a bit easier, but now that I've discovered gconf-editor, I find it really handy for changing a lot of things :)
Sunday, January 25, 2009
Eclipse
Wenn unter Ubuntu 8.10 Eclipse andauernd crasht: sun-java5-jdk installieren und in /etc/eclipse/java_home /usr/lib/jvm/java-1.5.0-sun an die erste Stelle verschieben.
Voila! Programmieren mit Python und Pydev geht plötzlich ohne dass jedesmal beim Schliessen oder Kompilieren Eclipse &/ Java crashen. Yay!
Voila! Programmieren mit Python und Pydev geht plötzlich ohne dass jedesmal beim Schliessen oder Kompilieren Eclipse &/ Java crashen. Yay!
Sunday, August 24, 2008
Thursday, October 25, 2007
suspend working (noch)
Created a new script /etc/acpi/resume.d/99-reinit-i8042.sh
Code:
#!/bin/sh
# Force re-init of the i8042 PS/2 keyboard/mouse controller
echo -n "i8042" > /sys/bus/platform/drivers/i8042/unbind
echo -n "i8042" > /sys/bus/platform/drivers/i8042/bind
Power tweaks
lesswatts.org
3. stop cdrom polling
hal-disable-polling --device /dev/scd0
1. disable bluetooth
hciconfig hci0 down
rmmod hci_usb
2. change scaling mode
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
3. stop cdrom polling
hal-disable-polling --device /dev/scd0
Friday, September 28, 2007
bibtex/latex 'tricks'
position im latex file:
\bibliography{report}
\bibliographystyle{plain|unsrt|alpha|anythingelse_in_folder}
\end{document}
zitieren:
according to \cite{compMed} blablabla
angeben aber nicht verwendet:
\nocite{ref1}
\addcontentsline{toc}{chapter|section}{Bibliography}
\bibliography{report}
\bibliographystyle{plain|unsrt|alpha|anythingelse_in_folder}
\end{document}
zitieren:
according to \cite{compMed} blablabla
angeben aber nicht verwendet:
\nocite{ref1}
Monday, June 25, 2007
to check
strg + y in nano schickt es in den background (stoppt es?) und der Befehl fg macht wieder weiter
Subscribe to:
Posts (Atom)