echo -e 127.0.0.1 \\t $HOSTNAME localhost $HOSTNAME.'(none)' | sudo tee -a /etc/hosts
Hope this helps. Found in the Ubuntu Forums here.
Home » Posts filed under kde
Diposkan oleh Unknown on Sunday, September 26, 2010
echo -e 127.0.0.1 \\t $HOSTNAME localhost $HOSTNAME.'(none)' | sudo tee -a /etc/hosts
Diposkan oleh Unknown on Monday, June 28, 2010
atkbd.c: Unknown key pressed (translated set 2, code 0xf7 on isa0060/serio0).then you need to look up the right number in include/linux/input.h e.g.here. E.g.
atkbd.c: Use 'setkeycodes e077' to make it known.
#define KEY_BRIGHTNESSDOWN 224And use that number with setkeycodes, e.g. for my system:
#define KEY_BRIGHTNESSUP 225
setkeycodes e077 224 # brightness downAnd now your system (e.g. KDE or Gnome) should immediately recognize the keys. Post the information to your distribution and it should be included in future releases. Just write the commands (without sudo) into /etc/rc.local to make them permanent for now.
setkeycodes e078 225 # brightness up
setkeycodes 0xee 212 # webcam
setkeycodes 0xe4 240 # touchpad -> unknown
setkeycodes e076 238 # wifi + bluetooth
Diposkan oleh Unknown on Thursday, June 10, 2010
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1 (Revision 29324)
+++ DOCS/man/en/mplayer.1 (Arbeitskopie)
@@ -732,6 +732,12 @@
handle carriage return (i.e.\& \\r).
.
.TP
+.B "\-quiet-time\ "
+Reduce console output updates to n per tenth of a second.
+Values of 5 or more work around slow terminals.
+See \-quiet for more.
+.
+.TP
.B \-priority(Windows and OS/2 only)
Set process priority for MPlayer according to the predefined
priorities available under Windows and OS/2.
Index: mplayer.c
===================================================================
--- mplayer.c (Revision 29324)
+++ mplayer.c (Arbeitskopie)
@@ -81,6 +81,7 @@
int slave_mode=0;
int player_idle_mode=0;
int quiet=0;
+int quiet_time=0;
int enable_mouse_movements=0;
float start_volume = -1;
@@ -1936,6 +1937,11 @@
static void adjust_sync_and_print_status(int between_frames, float timing_error)
{
+ static unsigned last_status_update=0;
+ unsigned now=GetTimerMS();
+ if (quiet_time && now >= (last_status_update + quiet_time * 100))
+ last_status_update=now;
+
current_module="av_sync";
if(mpctx->sh_audio){
@@ -1987,6 +1993,7 @@
c_total+=x;
}
if(!quiet)
+ if (!quiet_time || (last_status_update == now))
print_status(a_pts - audio_delay, AV_delay, c_total);
}
@@ -1994,6 +2001,7 @@
// No audio:
if (!quiet)
+ if (!quiet_time || (last_status_update == now))
print_status(0, 0, 0);
}
}
Index: cfg-common-opts.h
===================================================================
--- cfg-common-opts.h (Revision 29324)
+++ cfg-common-opts.h (Arbeitskopie)
@@ -8,6 +8,7 @@
// ------------------------- common options --------------------
{"quiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 0, 1, NULL},
{"noquiet", &quiet, CONF_TYPE_FLAG, CONF_GLOBAL, 1, 0, NULL},
+ {"quiet-time", &quiet_time, CONF_TYPE_INT, CONF_RANGE, 0, 65536, NULL},
{"really-quiet", &verbose, CONF_TYPE_FLAG, CONF_GLOBAL|CONF_PRE_PARSE, 0, -10, NULL},
{"v", cfg_inc_verbose, CONF_TYPE_FUNC, CONF_GLOBAL|CONF_NOSAVE, 0, 0, NULL},
{"msglevel", msgl_config, CONF_TYPE_SUBCONFIG, CONF_GLOBAL, 0, 0, NULL},
Index: mencoder.c
===================================================================
--- mencoder.c (Revision 29324)
+++ mencoder.c (Arbeitskopie)
@@ -131,6 +131,7 @@
//void resync_audio_stream(sh_audio_t *sh_audio){}
int quiet=0;
+int quiet_time=0;
double video_time_usage=0;
double vout_time_usage=0;
double max_video_time_usage=0;
@@ -1420,8 +1421,14 @@
(int)demuxer->filepos,
(int)demuxer->movi_end);
#else
+ static unsigned last_status_update=0;
+ unsigned now=GetTimerMS();
+ if (quiet_time && now >= (last_status_update + quiet_time * 100))
+ last_status_update=now;
+
if(!quiet) {
if( mp_msg_test(MSGT_STATUSLINE,MSGL_V) ) {
+ if (!quiet_time || (last_status_update == now))
mp_msg(MSGT_STATUSLINE,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %3dfps Trem:%4dmin %3dmb A-V:%5.3f [%d:%d] A/Vms %d/%d D/B/S %d/%d/%d \r",
mux_v->timer, decoded_frameno, (int)(p*100),
(t>1) ? (int)(decoded_frameno/t+0.5) : 0,
@@ -1434,6 +1441,7 @@
duplicatedframes, badframes, skippedframes
);
} else
+ if (!quiet_time || (last_status_update == now))
mp_msg(MSGT_STATUSLINE,MSGL_STATUS,"Pos:%6.1fs %6df (%2d%%) %5.2ffps Trem:%4dmin %3dmb A-V:%5.3f [%d:%d]\r",
mux_v->timer, decoded_frameno, (int)(p*100),
(t>1) ? (float)(decoded_frameno/t) : 0,
Diposkan oleh Unknown on Thursday, January 7, 2010
Process kopete (1868) Total: 19098.1 msec
fsync() on a file 6008.6 msec 99.8 %
Scheduler: waiting for cpu 19.4 msec 0.2 %
Process iron (5822) Total: 13753.6 msec
fsync() on a file 5090.9 msec 70.3 %
Writing a page to disk 1412.8 msec 10.3 %
synchronous write 524.5 msec 3.8 %
Diposkan oleh Unknown on Friday, March 20, 2009

grep polling ~/.local/screen-configurations.xmlIf it says polling false and after upgrading KDE to 4.2 you suddenly get the messages described above in Xorg.log, especially if the fix above worked for you before, then there's a bug somewhere in KDE. If you get polling true, you can try to reconfigure KDE to make it stop polling. (You can just edit the file and change true to false.)
Diposkan oleh Unknown on Saturday, February 7, 2009

Diposkan oleh Unknown on Wednesday, December 3, 2008
If you wondered why it doesn't work for you... it doesn't work for anyone. ;-)
They hope to have it fixed in KDE 4.2, says someone in a forum.
If you need a fix, try out installing xbindkeys-config and save the settings to the default config file and press apply for immediate changes. Works nicely for me.
Diposkan oleh Unknown on Sunday, November 16, 2008
Diposkan oleh Unknown on Wednesday, October 29, 2008
Okay, I've got a dirty hack for now to work around the flicker problem in Kubuntu 8.10. You can edit /usr/bin/startkde and comment out the line starting ksmserver (kwrapper4 ksmserver).
Then instead write
kwrapper4 krunner &
kwrapper4 plasma &
kwrapper4 kwin
There will be no session management, but also not flickering. I'll let you know when I find a better fix.
Update: Eventually I did find a much better fix. But it doesn't work for KDE 4.2 (yet).
Diposkan oleh Unknown on Tuesday, October 14, 2008
Diposkan oleh Unknown on Sunday, October 5, 2008
Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "FramebufferCompression" "off" # on for battery, off for multi-display
Option "monitor-LVDS" "internal"
Option "monitor-VGA" "external"
EndSection
Section "Monitor"
Identifier "internal"
EndSection
Section "Monitor"
Identifier "external"
Option "RightOf" "internal" #the left display is the primary one
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "internal"
Device "Configured Video Device"
SubSection "Display"
Virtual 2560 1024
# this should be as large as both displays next to each other
EndSubSection
EndSection
Section "ServerFlags"
# Option "Xinerama" "true" # crashes
Option "AIGLX" "false" # crashes multi-head
EndSection
Diposkan oleh Unknown on Thursday, October 2, 2008
sudo su -c "echo 'deb http://archive.ubuntu.com/ubuntu intrepid main' > /etc/apt/sources.list.d/intrepid.list"
apt-get update
apt-get install webkitkde
sudo su -c "echo > /etc/apt/sources.list.d/intrepid.list"
apt-get update
# workarounf for hardy
cd /usr/lib/kde4/share/kde4/services/
sudo ln -s /usr/share/kde4/services/webkitpart.desktop .
cd /usr/lib/kde4/lib/kde4/
sudo ln -s ../../webkitkdepart.so
# now the fine-tuning
cd /usr/lib/kde4/share/kde4/apps/ && sudo ln -s /usr/share/kde4/apps/webkitpart
cd /usr/lib/kde4/share/icons/hicolor/ && for i in 16x16 32x32 48x48 64x64 128x128; do cd $i/apps; sudo ln -s /usr/share/icons/hicolor/"$i"/apps/webkit.png; cd ../..; done;
kbuildsycoca4
sudo rm /usr/lib/kde4/share/kde4/services/webkitpart.desktop /usr/lib/kde4/lib/kde4/webkitkdepart.so /usr/lib/kde4/share/kde4/apps/webkitpart
cd /usr/lib/kde4/share/icons/hicolor/ && for i in 16x16 32x32 48x48 64x64 128x128; do cd $i/apps; sudo rm webkit.png; cd ../..; done;
sudo apt-get purge webkitkde
Diposkan oleh Unknown on Tuesday, September 16, 2008
Diposkan oleh Unknown on Saturday, September 6, 2008
The GTalk outage gave me some time to run another test of pidgin vs. kopete in memory consumption. Pidgin used to always win this competition, which is - next to the then better working file transfers - why I use pidgin.
I tested it again today and this time the Kopete coming with KDE 4.1.1 in Kubuntu won!
These results and the differences were reproducible. They were tested with "free" in the console. I started one program, then the other and in between ran free in the shell - several times.
Of course these results apply only if you're running a KDE 4.1.1 desktop. If you're a gnome user, pidgin is very likely to use less memory for you.
Also reproducible was that Kopete ate a lot of memory when opening the - currently very slow - configuration dialogue.
There seems to be a bug somewhere, as this memory is not freed until after you restart kopete. So after configuring something in Kopete 0.60.1 make sure you quit and restart it.
Feel free to test it yourself and post your results. Make sure to include what distribution, program versions and desktop environment you use and that you have the same amout of accounts active in each program.
Diposkan oleh Unknown on Thursday, August 14, 2008
(Wow I love the auto-save feature of Blogger. And Opera really still has issues in Linux.)
Open the webpage http://bugs.kde.org/show_bug.cgi?id=x to find out more about the bug, x being the bug number.
So there's a lot of things you can do if you're interested in KDE development. Of course you should first contact the developers of the part you want to fix to make sure there's not already someone working on it etc.
Also check out the complete list.
* Update: A lot of this stuff has already been fixed! Wow... nice.
Diposkan oleh Unknown
KDE's Most Popular Feature Requests are...
Somehow I doubt these bugs are very representative, though. And some of them are not up to date anymore. It is also disconcerting how many of these have existed for years without being fixed.
Diposkan oleh Unknown
As most Linux Desktops already have Virtual Desktops, I've always wondered why multiple displays aren't mappable to a virtual desktop each. And it seems like wasn't the only one: http://bugs.kde.org/show_bug.cgi?id=107302. Unfortunately noone seems to be at it even in times of KDE 4.1.
Also check out http://bugs.kde.org/show_bug.cgi?id=64268 to go along with it.
Diposkan oleh Unknown on Thursday, August 7, 2008
Diposkan oleh Unknown on Tuesday, August 5, 2008
I was trying to work out how to issue the standby command over dbus so that I can send my computer to standby with just a single click from a desktop icon. It turns out at least ksmserver can't receive such a command as there isn't even a type for it in kworkspace:
http://api.kde.org/4.x-api/kdebase-workspace-apidocs/libs/kworkspace/html/kworkspace_8h-source.html
00049 enum ShutdownType {
00053 ShutdownTypeDefault = -1,
00057 ShutdownTypeNone = 0,
00061 ShutdownTypeReboot = 1,
00065 ShutdownTypeHalt = 2
00066 };
So the best I could come up with was this to shut down the system(If anyone has seen suspend anywhere in KDE dbus, please comment!):
dbus-send --session --dest=org.kde.ksmserver --type=method_call \
--print-reply /KSMServer org.kde.KSMServerInterface.logout int32:-1 int32:2 int32:2
But then I found out you can use hal directly and finally I had my script working for immediate suspend:
dbus-send --system --dest=org.freedesktop.Hal --type=method_call \
--print-reply /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
This should work in any desktop environment. You can replace the 0 after "int32:" with the number of seconds to delay the Suspend. And you can also use it for hibernation:
dbus-send --system --dest=org.freedesktop.Hal --type=method_call \
--print-reply /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemPowerManagement.Hibernate
Now we can enjoy suspend with a single click. Just put it into a shell script and link that to your desktop.
Diposkan oleh Unknown on Sunday, July 20, 2008
2010 All Rights Reserved News Jaya.