You are not logged in.

#1 2010-12-03 06:32:16

thinkpadx61
Member
From: Norway
Registered: 2010-12-03
Posts: 10

[SOLVED] ncmpcpp media library scrolling lag

I'm not sure if this is a problem with ncmpcpp or mpd, but scrolling in the 'library view' in
ncmpcpp is noticeably lagging. Not so bad that it is unusable, but annoying nonetheless.

mpd 0.15.15-2
ncmpcpp-git 20101116-1

# /etc/mpd.conf

music_directory     "~/.mpd/music"
playlist_directory  "~/.mpd/playlists"
db_file               "~/.mpd/db"
log_file              "~/.mpd/mpd.log"
error_file            "~/.mpd/mpd.error"
pid_file              "~/.mpd/mpd.pid"
state_file            "~/.mpd/mpdstate"

user                  "my_username"

audio_output {
    type            "alsa"
    name         "My ALSA Device"
    options      "dev=dmixer"
    device        "plug:dmix"
}

mixer_type      "software"

Last edited by thinkpadx61 (2010-12-04 00:09:01)

Offline

#2 2010-12-03 13:01:26

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] ncmpcpp media library scrolling lag

Which terminal emulator do you use? I had this problem when ncmpcpp was very young and I thought the author and me figured it out, what causes this, but aparently we didn't. I use urxvt. It might help if you try a few different terminal emulators, xterm, *rxvt, ... Maybe it only lags with some of them.

Just a hint, if the problem can't be solved here, don't be too shy to contact the author, he's a super nice guy.

Offline

#3 2010-12-03 21:59:28

thinkpadx61
Member
From: Norway
Registered: 2010-12-03
Posts: 10

Re: [SOLVED] ncmpcpp media library scrolling lag

I use rxvt-unicode as my primary terminal emulator, too. In addition, I have tested ncmpcpp in xterm, aterm and fgetty. All with the same
results, unfortunately. I also tried upgrading to mpd-git (20101203-1), with no luck.

I will try to contact the author, though I do suspect the problem lies with mpd. If my memory serves me right, this problem started with the
mpd 0.13 upgrade.

Offline

#4 2010-12-03 22:17:19

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] ncmpcpp media library scrolling lag

this is possibly a ncmpcpp bug. try to use a socket file, instead of tcp connection. Should be much better.


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2010-12-03 23:14:46

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] ncmpcpp media library scrolling lag

Rasi wrote:

this is possibly a ncmpcpp bug. try to use a socket file, instead of tcp connection. Should be much better.

What exactly do you mean with that?

Offline

#6 2010-12-04 00:00:31

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] ncmpcpp media library scrolling lag

Army wrote:
Rasi wrote:

this is possibly a ncmpcpp bug. try to use a socket file, instead of tcp connection. Should be much better.

What exactly do you mean with that?

> grep socket /etc/mpd.conf
# be disabled and audio files will only be accepted over ipc socket (using
# MPD to accept files over ipc socket (using file:// protocol) or streaming
bind_to_address        "/mnt/md0/Audio/.mpd/socket"
> grep socket .ncmpcpp/config 
mpd_host = "/mnt/md0/Audio/.mpd/socket"

He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#7 2010-12-04 00:07:10

thinkpadx61
Member
From: Norway
Registered: 2010-12-03
Posts: 10

Re: [SOLVED] ncmpcpp media library scrolling lag

Thank you very much, Rasi! That did it. Finally, scrolling is smooth again.

Offline

#8 2010-12-04 00:14:07

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] ncmpcpp media library scrolling lag

Great stuff, this really helps! Thanks Rasi!
Unfortunately, now mpc needs some extra parameters.

Last edited by Army (2010-12-04 00:22:35)

Offline

#9 2010-12-04 00:46:34

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] ncmpcpp media library scrolling lag

Army wrote:

Great stuff, this really helps! Thanks Rasi!
Unfortunately, now mpc needs some extra parameters.

echo "export MPD_HOST=/path/to/mpd_socket" >> ~/.bashrc - but you dont need to, because:
you can set both tcp and socket file addresses in mpd.conf, simply duplicate the line and tweak it to your likings

Last edited by Rasi (2010-12-04 00:48:03)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#10 2010-12-04 13:14:24

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] ncmpcpp media library scrolling lag

Ah that's perfect, thanks a lot smile

Offline

Board footer

Powered by FluxBB