Return-Path: Subject: Re: [PATCH] Sort devices by type in the treeviews From: Marcel Holtmann To: Bastien Nocera Cc: BlueZ development In-Reply-To: <1225137382.3584.115.camel@cookie.hadess.net> References: <1225024770.1503.1398.camel@cookie.hadess.net> <1225136737.7157.26.camel@californication> <1225137382.3584.115.camel@cookie.hadess.net> Content-Type: text/plain Date: Mon, 27 Oct 2008 21:03:32 +0100 Message-Id: <1225137812.7157.39.camel@californication> Mime-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Bastien, > > > Sorting by RSSI means that the devices just around in the treeview > > > which is painfully annoying. > > > > we want to sort by RSSI to list devices in range first. However we > > should extend the sorting to always list already known or paired devices > > first. This should stop them from moving around. > > > > If it stil jumps too much for you, then we might just improve the > > sorting mechanism to be a little bit more resistance for jumping around, > > but sorting by type gives us no advantage. > > It certainly jumps around far too much. It flickers tens of times a > second, switching between a phone and the Mac mini just next to it... then we just need to be smart about it. Meaning we only switch positions if the RSSI value is a big difference. So that close devices don't jump that much. Regards Marcel